]> git.sesse.net Git - vlc/commitdiff
The last but not the least commit about these useless tests.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 12 Mar 2008 11:06:29 +0000 (12:06 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 12 Mar 2008 11:07:43 +0000 (12:07 +0100)
modules/access_output/shout.c
modules/codec/ffmpeg/encoder.c
modules/control/http/macro.c
modules/control/http/mvar.c
modules/control/netsync.c
modules/control/rc.c
modules/control/telnet.c

index 15d7ae8cc5be66c03d351e49acaf156f787f2b72..21373ebc3e92ae2f1ed5ca23b0fbbef36e14d624 100644 (file)
@@ -263,10 +263,10 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    if( psz_name ) free( psz_name );
-    if( psz_description ) free( psz_description );
-    if( psz_genre ) free( psz_genre );
-    if( psz_url ) free( psz_url );
+    free( psz_name );
+    free( psz_description );
+    free( psz_genre );
+    free( psz_url );
 
     var_Get( p_access, SOUT_CFG_PREFIX "mp3", &val );
     if( val.b_bool == VLC_TRUE )
index ac00f2f39747a7ff3e78638e9435cc7cccedb104..b74de24cf229e3822b49d17bf56736d7803479f6 100644 (file)
@@ -399,7 +399,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
             p_sys->i_aac_profile = FF_PROFILE_UNKNOWN;
         }
     }
-    if( val.psz_string ) free( val.psz_string );
+    free( val.psz_string );
 #endif
 
     if( p_enc->fmt_in.i_cat == VIDEO_ES )
index 95fcf0352e2b288f22d639ccd2bbd18b334a1a25..6971c992ac45f5799538cb21a8995a171d499ebd 100644 (file)
@@ -390,7 +390,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         }
                     }
 
-                    if( p_items ) free( p_items );
+                    free( p_items );
                     break;
                 }
                 case MVLC_KEEP:
@@ -432,7 +432,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         }
                     }
 
-                    if( p_items ) free( p_items );
+                    free( p_items );
                     break;
                 }
                 case MVLC_EMPTY:
index bdbe91c3ae101b3b072b75259d5c9bf375c31a0f..ae87e711bf4822e2299c88147198cde705a6d76b 100644 (file)
@@ -626,8 +626,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name,
     }
 
     free( psz_dir );
-    if( ppsz_dir_content != NULL )
-        free( ppsz_dir_content );
+    free( ppsz_dir_content );
     return s;
 }
 
index 60e4937587c72ec24bd5c0fe5c4dc66a3b9fe970..5bcfa14252e8103699e98636fe923a2fce8ce201 100644 (file)
@@ -158,7 +158,7 @@ static void Run( intf_thread_t *p_intf )
     else
         i_socket = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 );
 
-    if( psz_master ) free( psz_master );
+    free( psz_master );
 
     if( i_socket < 0 )
     {
index 8e544c047aec3d0c89a6d4c7b9020544e786a29c..e771248ddc2d9235d5c8858cef1b2b5c2441c381 100644 (file)
@@ -1270,7 +1270,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
                         &val, &text );
             msg_rc( "+----[ end of %s ]", val_name.psz_string );
 
-            if( val_name.psz_string ) free( val_name.psz_string );
+            free( val_name.psz_string );
 
             i_error = VLC_SUCCESS;
         }
@@ -1778,7 +1778,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
                     &val, &text );
         msg_rc( "+----[ end of %s ]", val_name.psz_string );
 
-        if( val_name.psz_string ) free( val_name.psz_string );
+        free( val_name.psz_string );
 
         i_error = VLC_SUCCESS;
     }
@@ -1865,7 +1865,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
                     &val, &text );
         msg_rc( "+----[ end of %s ]", val_name.psz_string );
 
-        if( val_name.psz_string ) free( val_name.psz_string );
+        free( val_name.psz_string );
         i_error = VLC_SUCCESS;
     }
     else
@@ -1933,12 +1933,12 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
     {
         msg_rc( _("Please provide one of the following parameters:") );
         msg_rc( "[on|off|up|down|left|right|select]" );
-        if( val.psz_string ) free( val.psz_string );
-            return i_error;
+        free( val.psz_string );
+        return i_error;
     }
 
     i_error = VLC_SUCCESS;
-    if( val.psz_string ) free( val.psz_string );
+    free( val.psz_string );
     return i_error;
 }
 
index 6a10b0b3ad5ccf09b8894b94c070ec70a5fe8e64..d27f4ac98b5af58ed9093fd997e0b8e775d4cbf1 100644 (file)
@@ -230,7 +230,7 @@ static void Close( vlc_object_t *p_this )
         free( cl );
         p_sys->clients[i] = NULL;
     }
-    if( p_sys->clients != NULL ) free( p_sys->clients );
+    free( p_sys->clients );
 
     net_ListenClose( p_sys->pi_fd );
 
@@ -515,8 +515,7 @@ static void Run( intf_thread_t *p_intf )
             TAB_APPEND( p_sys->i_clients, p_sys->clients, cl );
         }
     }
-    if( psz_password )
-        free( psz_password );
+    free( psz_password );
 }
 
 static void Write_message( telnet_client_t *client, vlm_message_t *message,
@@ -526,7 +525,7 @@ static void Write_message( telnet_client_t *client, vlm_message_t *message,
 
     client->p_buffer_read = client->buffer_read;
     (client->p_buffer_read)[0] = 0; // if (cl->p_buffer_read)[0] = '\n'
-    if( client->buffer_write ) free( client->buffer_write );
+    free( client->buffer_write );
 
     /* generate the psz_message string */
     if( message )