]> git.sesse.net Git - vlc/blobdiff - modules/access/ftp.c
Another time "Remove useless test before a free".
[vlc] / modules / access / ftp.c
index 09d9fed1c7900ad97fc55b26d0f2699076949ba1..8138995d4685180db8ab1106c5787b633b11cee6 100644 (file)
@@ -623,7 +623,7 @@ static int ftp_ReadCommand( vlc_object_t *p_access, access_sys_t *p_sys,
     if( psz_line == NULL || strlen( psz_line ) < 3 )
     {
         msg_Err( p_access, "cannot get answer" );
-        if( psz_line ) free( psz_line );
+        free( psz_line );
         if( pi_answer ) *pi_answer    = 500;
         if( ppsz_answer ) *ppsz_answer  = NULL;
         return -1;