Commit a021a7f9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix vasprintf warning.

parent 25a48a4e
...@@ -589,10 +589,13 @@ static int ftp_SendCommand( vlc_object_t *p_access, access_sys_t *p_sys, ...@@ -589,10 +589,13 @@ static int ftp_SendCommand( vlc_object_t *p_access, access_sys_t *p_sys,
char *psz_cmd; char *psz_cmd;
va_start( args, psz_fmt ); va_start( args, psz_fmt );
vasprintf( &psz_cmd, psz_fmt, args ); if( vasprintf( &psz_cmd, psz_fmt, args ) == -1 )
return VLC_EGENERIC;
va_end( args ); va_end( args );
msg_Dbg( p_access, "ftp_SendCommand:\"%s\"", psz_cmd); msg_Dbg( p_access, "ftp_SendCommand:\"%s\"", psz_cmd);
if( net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL, "%s\r\n", if( net_Printf( VLC_OBJECT(p_access), p_sys->fd_cmd, NULL, "%s\r\n",
psz_cmd ) < 0 ) psz_cmd ) < 0 )
{ {
......
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