]> git.sesse.net Git - vlc/commitdiff
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 76862cde95e222f99f1eea34a0473e0105eb0a87..4c305fdbf1cd4d993fa012e7a91fe177bb624240 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++;
         }