From 1a5776bb793ba92b2f654a492f7755ca5b01d703 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 19 Dec 2014 01:06:07 +0100 Subject: tree_store_update: gracefully handle null strings Taken from GSM commit: 65ed172b62dad0a4c286e0022831d3846dd98359 From: Pavel Vasin Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=672741 --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index f14de7a..cdb3287 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -566,7 +566,7 @@ namespace procman gtk_tree_model_get(model, iter, column, ¤t_value, -1); - if (!current_value or std::strcmp(current_value, new_value) != 0) + if (g_strcmp0(current_value, new_value) != 0) gtk_tree_store_set(GTK_TREE_STORE(model), iter, column, new_value, -1); g_free(current_value); -- cgit v1.2.1