Skip to content

Commit

Permalink
Reset existing value array when reading from persistent storage file
Browse files Browse the repository at this point in the history
Oops, arrays got longer on every mce restart...
  • Loading branch information
spiiroin committed Jan 21, 2013
1 parent 120289b commit 1e4cbd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-gconf.c
Expand Up @@ -806,6 +806,8 @@ static void gconf_value_set_from_string(GConfValue *self, const char *data)
goto cleanup;
}

self->list_head = gconf_value_list_free(self->list_head);

for( now = tmp = strdup(data); now; now = zen )
{
if( (zen = strchr(now, ',')) )
Expand Down

0 comments on commit 1e4cbd5

Please sign in to comment.