Commit 97bf3e7d authored by Sam Hocevar's avatar Sam Hocevar

* ./src/input/input_info.c, ./src/misc/messages.c: initialized the first

    vasprintf arguments to NULL for extra safety.
parent 4b1b77b6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_info.c: Convenient functions to handle the input info structures * input_info.c: Convenient functions to handle the input info structures
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input_info.c,v 1.2 2002/07/22 21:14:30 sigmunau Exp $ * $Id: input_info.c,v 1.3 2002/07/23 00:30:22 sam Exp $
* *
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* *
...@@ -75,7 +75,7 @@ int input_AddInfo( input_info_category_t * p_category, char * psz_name, ...@@ -75,7 +75,7 @@ int input_AddInfo( input_info_category_t * p_category, char * psz_name,
char * psz_format, ...) char * psz_format, ...)
{ {
input_info_t * p_info, * p_prev; input_info_t * p_info, * p_prev;
char * psz_str; char * psz_str = NULL;
va_list args; va_list args;
p_prev = NULL; p_prev = NULL;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* modules, especially intf modules. See config.h for output configuration. * modules, especially intf modules. See config.h for output configuration.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: messages.c,v 1.4 2002/07/15 19:15:05 sam Exp $ * $Id: messages.c,v 1.5 2002/07/23 00:30:22 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -237,7 +237,7 @@ DECLARE_MSG_FN( __msg_Dbg, VLC_MSG_DBG ); ...@@ -237,7 +237,7 @@ DECLARE_MSG_FN( __msg_Dbg, VLC_MSG_DBG );
static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module, static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
const char *psz_format, va_list args ) const char *psz_format, va_list args )
{ {
char * psz_str; /* formatted message string */ char * psz_str = NULL; /* formatted message string */
msg_item_t * p_item; /* pointer to message */ msg_item_t * p_item; /* pointer to message */
msg_item_t item; /* message in case of a full queue */ msg_item_t item; /* message in case of a full queue */
#ifdef WIN32 #ifdef WIN32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment