[gtk+/gtk-3-22] label: Remove dead ternary operator



commit b831e97af45e94da0f5b89e26fc579734385cb0a
Author: Timm Bäder <mail baedert org>
Date:   Thu Apr 27 17:52:46 2017 +0200

    label: Remove dead ternary operator

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index af23f13..f97e73b 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4546,7 +4546,7 @@ gtk_label_set_text_with_mnemonic (GtkLabel    *label,
 
   g_object_freeze_notify (G_OBJECT (label));
 
-  gtk_label_set_label_internal (label, g_strdup (str ? str : ""));
+  gtk_label_set_label_internal (label, g_strdup (str));
   gtk_label_set_use_markup_internal (label, FALSE);
   gtk_label_set_use_underline_internal (label, TRUE);
   


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]