Commit 28288a47 authored by Francois Cartegnie's avatar Francois Cartegnie

vlmshell: fix null pointer dereference (cid #1049028)

parent d1ffaaf1
......@@ -854,7 +854,7 @@ int ExecuteCommand( vlm_t *p_vlm, const char *psz_command,
if( !psz_buf || !ppsz_command )
{
p_message = vlm_MessageNew( ppsz_command[0],
p_message = vlm_MessageNew( ( ppsz_command ) ? ppsz_command[0] : NULL,
"Memory allocation failed for command of length %zu",
i_command_len );
goto error;
......
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