From: Russell Bryant Date: Thu, 17 Aug 2006 19:14:20 +0000 (+0000) Subject: fix the use of an uninitialized variable (issue #7746, pointed out by garyhai) X-Git-Tag: 1.4.0-beta1~375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8272afb1f68ee3971930d6b0c81c2330b631fd6;p=thirdparty%2Fasterisk.git fix the use of an uninitialized variable (issue #7746, pointed out by garyhai) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40278 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 33758d3d37..b512cd974f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7021,7 +7021,9 @@ static int sip_refer_allocate(struct sip_pvt *p) */ static int transmit_refer(struct sip_pvt *p, const char *dest) { - struct sip_request req; + struct sip_request req = { + .headers = 0, + }; char from[256]; const char *of; char *c;