diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-08-17 19:14:20 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-08-17 19:14:20 +0000 |
commit | a8272afb1f68ee3971930d6b0c81c2330b631fd6 (patch) | |
tree | 39f5534239fda06231bca48e9150bebc7b91240c /channels | |
parent | 50d94fc889a1d9b02fa71446ce2d6f24b88b5df7 (diff) |
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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
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; |