From 61a3e7e79b68b89fdf48aa9371c55190bb6878d2 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 e043ead252..62b738a845 100644 --- a/res/res_pjsip_registrar.c +++ b/res/res_pjsip_registrar.c @@ -1006,7 +1006,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