aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-17 19:14:20 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-17 19:14:20 +0000
commitd6947b4515acc28c98b4a4f9c577d330ca3b4368 (patch)
tree39f5534239fda06231bca48e9150bebc7b91240c
parent288f5647e653289c3e0ed84a001d5924655d8d63 (diff)
fix the use of an uninitialized variable (issue #7746, pointed out by garyhai)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40278 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 33758d3d3..b512cd974 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;