]> git.sesse.net Git - vlc/commitdiff
access.c: fixed crash with preparse
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 2 Apr 2005 17:38:06 +0000 (17:38 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 2 Apr 2005 17:38:06 +0000 (17:38 +0000)
src/input/access.c

index f32fdc6784709461eece94797ced61b5a38d1987..8cab0712765fa1ed1f64dd17bea48cb4475d8030 100644 (file)
@@ -55,9 +55,9 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj,
     {
         msg_Dbg( p_obj, "creating access '%s' path='%s'",
                  psz_access, psz_path );
-        p_access->psz_access = b_quick ? strdup( "file" ) : strdup( psz_access );
-        p_access->psz_path   = strdup( psz_path );
     }
+    p_access->psz_access = b_quick ? strdup( "file" ) : strdup( psz_access );
+    p_access->psz_path   = strdup( psz_path );
     p_access->psz_demux  = strdup( "" );
 
     p_access->pf_read    = NULL;