From 3230451120445d9f610e1749075a413c3e2dddc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 1 Feb 2009 14:36:01 +0200 Subject: [PATCH] Small cleanup --- src/interface/interaction.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); } -- 2.39.2