[evolution/gnome-3-24] Fix the compilation warning with gcc 7



commit 073e81c98ceee1f302a544107073b708f5601db1
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Apr 12 11:04:38 2017 +0200

    Fix the compilation warning with gcc 7

 src/e-util/e-charset-combo-box.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/e-util/e-charset-combo-box.c b/src/e-util/e-charset-combo-box.c
index 1f15727..3d7c68a 100644
--- a/src/e-util/e-charset-combo-box.c
+++ b/src/e-util/e-charset-combo-box.c
@@ -154,7 +154,7 @@ charset_combo_box_run_dialog (ECharsetComboBox *combo_box)
        }
 
        charset = gtk_entry_get_text (entry);
-       g_return_if_fail (charset != NULL && charset != '\0');
+       g_return_if_fail (charset != NULL && *charset != '\0');
 
        g_object_set_data_full (
                object, "charset", g_strdup (charset),


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