[vlc-commits] hotkeys: remove tautology test

Rémi Denis-Courmont git at videolan.org
Sun Jun 10 12:11:37 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 10 12:04:40 2018 +0300| [d5e48f174cca29600fa2bf3d2dd3cbc841196908] | committer: Rémi Denis-Courmont

hotkeys: remove tautology test

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5e48f174cca29600fa2bf3d2dd3cbc841196908
---

 modules/control/hotkeys.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index ce2b503c53..dc6b6688da 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -119,12 +119,9 @@ static void var_FreeList( vlc_list_t values, char **texts )
 
     free( values.p_values );
 
-    if( texts != NULL )
-    {
-        for( int i = 0; i < values.i_count; i++ )
-            free( texts[i] );
-        free( texts );
-    }
+    for( int i = 0; i < values.i_count; i++ )
+        free( texts[i] );
+    free( texts );
 }
 
 static int MovedEvent( vlc_object_t *p_this, char const *psz_var,



More information about the vlc-commits mailing list