diff options
author | Bastien Nocera <hadess@hadess.net> | 2011-09-01 10:43:38 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2011-09-01 10:43:38 +0100 |
commit | d994a0a0b1a7cb56a7214e9260eda280653d26ac (patch) | |
tree | 866276e2490a79bb13ae3d71619000ecaf3d2dc5 /plugins/housekeeping | |
parent | 76351c8827a5fe3b99d83fecea816b00763d5fd8 (diff) | |
download | gnome-settings-daemon-d994a0a0b1a7cb56a7214e9260eda280653d26ac.tar.gz |
housekeeping: NULL-terminate the ignore-paths array
Otherwise crashy crashy.
https://bugzilla.gnome.org/show_bug.cgi?id=657849
Diffstat (limited to 'plugins/housekeeping')
-rw-r--r-- | plugins/housekeeping/gsd-ldsm-dialog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/housekeeping/gsd-ldsm-dialog.c b/plugins/housekeeping/gsd-ldsm-dialog.c index 96161ec2..7366eb3f 100644 --- a/plugins/housekeeping/gsd-ldsm-dialog.c +++ b/plugins/housekeeping/gsd-ldsm-dialog.c @@ -177,6 +177,7 @@ ignore_check_button_toggled_cb (GtkToggleButton *button, for (l = ignore_paths; l != NULL; l = l->next) g_ptr_array_add (array, l->data); + g_ptr_array_add (array, NULL); if (!g_settings_set_strv (settings, "ignore-paths", (const gchar **) array->pdata)) { g_warning ("Cannot change ignore preference - failed to commit changes"); |