]> git.sesse.net Git - vlc/commitdiff
Simplify - CID 6
authorRafaël Carré <funman@videolan.org>
Fri, 30 May 2008 14:08:20 +0000 (16:08 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 30 May 2008 14:08:20 +0000 (16:08 +0200)
modules/access/smb.c

index 4072071684bb5a182814701625dcab3c23f8fe55..83fcd0739a444317eea3275d637ccdea7065fc1d 100644 (file)
@@ -189,11 +189,11 @@ static int Open( vlc_object_t *p_this )
      * smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */
 
     if( !psz_user ) psz_user = var_CreateGetString( p_access, "smb-user" );
-    if( psz_user && !*psz_user ) { free( psz_user ); psz_user = 0; }
+    if( !*psz_user ) { free( psz_user ); psz_user = 0; }
     if( !psz_pwd ) psz_pwd = var_CreateGetString( p_access, "smb-pwd" );
-    if( psz_pwd && !*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; }
+    if( !*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; }
     if( !psz_domain ) psz_domain = var_CreateGetString( p_access, "smb-domain" );
-    if( psz_domain && !*psz_domain ) { free( psz_domain ); psz_domain = 0; }
+    if( !*psz_domain ) { free( psz_domain ); psz_domain = 0; }
 
 #ifdef WIN32
     if( psz_user )