vlm.c: fix segfault when vlm command have mismatched quotes
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 5 Dec 2005 17:54:35 +0000 (17:54 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 5 Dec 2005 17:54:35 +0000 (17:54 +0000)
src/misc/vlm.c

index 76862cd..4c305fd 100644 (file)
@@ -316,6 +316,7 @@ static char *FindEndCommand( char *psz )
             if( ( *psz_sent == '\'' ) || ( *psz_sent == '\"' ) )
             {
                 psz_sent = FindEndCommand( psz_sent );
+                if( psz_sent == NULL ) return NULL;
             }
             else psz_sent++;
         }