[Asterisk-code-review] res_pjsip_registrar: Fix uninitlized variable warning (asterisk[master])
Friendly Automation
asteriskteam at digium.com
Wed Nov 20 08:00:58 CST 2019
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13255 )
Change subject: res_pjsip_registrar: Fix uninitlized variable warning
......................................................................
res_pjsip_registrar: Fix uninitlized variable warning
Fixes: error: ‘domain_name’ may be used uninitialized in this function
Found with gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Change-Id: I44413b49ea1205aa25538142161deb73883c79e8
---
M res/res_pjsip_registrar.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/res/res_pjsip_registrar.c b/res/res_pjsip_registrar.c
index e043ead..62b738a 100644
--- a/res/res_pjsip_registrar.c
+++ b/res/res_pjsip_registrar.c
@@ -1006,7 +1006,7 @@
{
struct ast_sip_aor *aor = NULL;
char *aor_name = NULL;
- char *domain_name;
+ char *domain_name = NULL;
char *username = NULL;
int i;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13255
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I44413b49ea1205aa25538142161deb73883c79e8
Gerrit-Change-Number: 13255
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191120/1443a799/attachment.html>
More information about the asterisk-code-review
mailing list