]> git.sesse.net Git - vlc/commitdiff
fix osdmenu-file-path option
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 23 Sep 2007 09:21:58 +0000 (09:21 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 23 Sep 2007 09:21:58 +0000 (09:21 +0000)
src/osd/osd_parser.c

index c2b5a002ea7ae81f805d7aa2f769a951cb5e823b..848cfb5708528a57ed58a4071d16d401b0222301 100644 (file)
@@ -340,13 +340,11 @@ int osd_ConfigLoader( vlc_object_t *p_this, const char *psz_file,
         size_t i_len = 0;
         long pos = 0;
 
+        result = fscanf(fd, "%24s %255s", &action[0], &path[0] );
+
         /* override images path ? */
         psz_path = config_GetPsz( p_this, "osdmenu-file-path" );
-        if( psz_path == NULL )
-        {
-            result = fscanf(fd, "%24s %255s", &action[0], &path[0] );
-        }
-        else
+        if( psz_path )
         {
             /* psz_path is not null and therefor &path[0] cannot be NULL
              * it might be null terminated.