summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-19 01:06:07 +0100
committerinfirit <[email protected]>2014-12-19 01:06:07 +0100
commit1a5776bb793ba92b2f654a492f7755ca5b01d703 (patch)
treefd6324feef29e6042d179c4a058598bf6036fb41
parent5183fe16eeab60a08a1ea071102871458b215318 (diff)
downloadmate-system-monitor-1a5776bb793ba92b2f654a492f7755ca5b01d703.tar.bz2
mate-system-monitor-1a5776bb793ba92b2f654a492f7755ca5b01d703.tar.xz
tree_store_update: gracefully handle null strings
Taken from GSM commit: 65ed172b62dad0a4c286e0022831d3846dd98359 From: Pavel Vasin <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=672741
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
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, &current_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);