diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-06 21:01:10 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-06 21:01:10 +0000 |
commit | 253840e36365fb61458fbb0f6a12e3f36a983171 (patch) | |
tree | b571739ebd5ce43061e6ab27387e865bb657d59b /channels/iax2-parser.c | |
parent | 0cd72aba9ef725190952bbfb3e59475435e2ed26 (diff) |
Initialize iax_frames variable to NULL, keeps valgrind happy.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81814 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2-parser.c')
-rw-r--r-- | channels/iax2-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index 7357fce72..b6c4befcc 100644 --- a/channels/iax2-parser.c +++ b/channels/iax2-parser.c @@ -996,7 +996,7 @@ struct iax_frame *iax_frame_new(int direction, int datalen, unsigned int cacheab struct iax_frame *fr = NULL; #if !defined(LOW_MEMORY) - struct iax_frames *iax_frames; + struct iax_frames *iax_frames = NULL; /* Attempt to get a frame from this thread's cache */ if ((iax_frames = ast_threadstorage_get(&frame_cache, sizeof(*iax_frames)))) { @@ -1040,7 +1040,7 @@ struct iax_frame *iax_frame_new(int direction, int datalen, unsigned int cacheab void iax_frame_free(struct iax_frame *fr) { #if !defined(LOW_MEMORY) - struct iax_frames *iax_frames; + struct iax_frames *iax_frames = NULL; #endif /* Note: does not remove from scheduler! */ |