aboutsummaryrefslogtreecommitdiffstats
path: root/set.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-12-25 23:17:28 -0300
committerdequis <dx@dxzone.com.ar>2016-12-26 19:38:32 -0300
commit90a45b8fc30a0b8b96c60926e638291fc0d0fa08 (patch)
treebcbee9fddfbdd147f682c4088d91dd84e1fcb287 /set.c
parent26eed8a46e4464a46a8a0383ceabeb8f54dcc7fb (diff)
Fix some clang static analyzer warnings
Nothing interesting.
Diffstat (limited to 'set.c')
-rw-r--r--set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/set.c b/set.c
index 91dd7bd5..ec18b82d 100644
--- a/set.c
+++ b/set.c
@@ -164,7 +164,7 @@ int set_setstr(set_t **head, const char *key, char *value)
/* If there's a default setting and it's equal to what we're trying to
set, stick with s->value = NULL. Otherwise, remember the setting. */
- if (!s->def || (strcmp(nv, s->def) != 0)) {
+ if (!s->def || (g_strcmp0(nv, s->def) != 0)) {
s->value = g_strdup(nv);
}