mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Initialize iax_frames variable to NULL, keeps valgrind happy.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -996,7 +996,7 @@ struct iax_frame *iax_frame_new(int direction, int datalen, unsigned int cacheab
|
|||||||
struct iax_frame *fr = NULL;
|
struct iax_frame *fr = NULL;
|
||||||
|
|
||||||
#if !defined(LOW_MEMORY)
|
#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 */
|
/* Attempt to get a frame from this thread's cache */
|
||||||
if ((iax_frames = ast_threadstorage_get(&frame_cache, sizeof(*iax_frames)))) {
|
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)
|
void iax_frame_free(struct iax_frame *fr)
|
||||||
{
|
{
|
||||||
#if !defined(LOW_MEMORY)
|
#if !defined(LOW_MEMORY)
|
||||||
struct iax_frames *iax_frames;
|
struct iax_frames *iax_frames = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Note: does not remove from scheduler! */
|
/* Note: does not remove from scheduler! */
|
||||||
|
Reference in New Issue
Block a user