[asterisk-commits] file: trunk r81814 - /trunk/channels/iax2-parser.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 6 16:01:11 CDT 2007
Author: file
Date: Thu Sep 6 16:01:10 2007
New Revision: 81814
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81814
Log:
Initialize iax_frames variable to NULL, keeps valgrind happy.
Modified:
trunk/channels/iax2-parser.c
Modified: trunk/channels/iax2-parser.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/iax2-parser.c?view=diff&rev=81814&r1=81813&r2=81814
==============================================================================
--- trunk/channels/iax2-parser.c (original)
+++ trunk/channels/iax2-parser.c Thu Sep 6 16:01:10 2007
@@ -996,7 +996,7 @@
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 @@
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! */
More information about the asterisk-commits
mailing list