]> git.sesse.net Git - vlc/blobdiff - src/interface/interaction.c
Small cleanup
[vlc] / src / interface / interaction.c
index 53209b56d1ddbab61fdbed35f26011604ef7e8e2..91032368f85b6e532991d154cbfa867211e73118 100644 (file)
@@ -163,8 +163,7 @@ int __intf_UserYesNo( vlc_object_t *p_this,
     p_new->i_flags = DIALOG_YES_NO_CANCEL;
     p_new->psz_default_button = strdup( psz_default );
     p_new->psz_alternate_button = strdup( psz_alternate );
-    if( psz_other )
-        p_new->psz_other_button = strdup( psz_other );
+    p_new->psz_other_button = psz_other ? strdup( psz_other ) : NULL;
 
     return DialogSend( p_new );
 }