diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-26 02:26:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-26 02:26:13 +0000 |
commit | f9653a5e1eddf73adce1a7cc33167c843dab8b8f (patch) | |
tree | b20a60260e94c5f368b209ad183e941f813d2ef4 /src/lib-config | |
parent | a954fa03d053992d0ca84cfd8475d4ba09192220 (diff) | |
download | irssi-f9653a5e1eddf73adce1a7cc33167c843dab8b8f.zip |
some updates for checking when to not autosave config.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@872 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config')
-rw-r--r-- | src/lib-config/set.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib-config/set.c b/src/lib-config/set.c index 342d2b70..e0d3cf08 100644 --- a/src/lib-config/set.c +++ b/src/lib-config/set.c @@ -104,9 +104,11 @@ void config_node_set_str(CONFIG_REC *rec, CONFIG_NODE *parent, const char *key, return; } - if (node != NULL) + if (node != NULL) { + if (strcmp(node->value, value) == 0) + return; g_free(node->value); - else { + } else { node = g_new0(CONFIG_NODE, 1); parent->value = g_slist_append(parent->value, node); |