vlm.c: fix segfault when vlm command have mismatched quotes

parent 8ccea103
...@@ -316,6 +316,7 @@ static char *FindEndCommand( char *psz ) ...@@ -316,6 +316,7 @@ static char *FindEndCommand( char *psz )
if( ( *psz_sent == '\'' ) || ( *psz_sent == '\"' ) ) if( ( *psz_sent == '\'' ) || ( *psz_sent == '\"' ) )
{ {
psz_sent = FindEndCommand( psz_sent ); psz_sent = FindEndCommand( psz_sent );
if( psz_sent == NULL ) return NULL;
} }
else psz_sent++; else psz_sent++;
} }
......
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