From: RĂ©mi Denis-Courmont Date: Sun, 1 Feb 2009 12:36:01 +0000 (+0200) Subject: Small cleanup X-Git-Tag: 1.0.0-pre1~926 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3230451120445d9f610e1749075a413c3e2dddc2;p=vlc Small cleanup --- diff --git a/src/interface/interaction.c b/src/interface/interaction.c index 53209b56d1..91032368f8 100644 --- a/src/interface/interaction.c +++ b/src/interface/interaction.c @@ -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 ); }