From b03af8ba3ca64211d338db31bc9c92c5e37c8a8d Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 19 Nov 2019 10:31:59 -0500 Subject: [PATCH] res_pjsip_registrar: Fix uninitlized variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- res/res_pjsip_registrar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip_registrar.c b/res/res_pjsip_registrar.c index 5963066191..2478e4b3c3 100644 --- a/res/res_pjsip_registrar.c +++ b/res/res_pjsip_registrar.c @@ -1017,7 +1017,7 @@ static struct ast_sip_aor *find_registrar_aor(struct pjsip_rx_data *rdata, struc { struct ast_sip_aor *aor = NULL; char *aor_name = NULL; - char *domain_name; + char *domain_name = NULL; char *username = NULL; int i; -- 2.47.2