[gnome-settings-daemon] housekeeping: NULL-terminate the ignore-paths array
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: NULL-terminate the ignore-paths array
- Date: Thu, 1 Sep 2011 09:44:23 +0000 (UTC)
commit d994a0a0b1a7cb56a7214e9260eda280653d26ac
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 1 10:43:38 2011 +0100
housekeeping: NULL-terminate the ignore-paths array
Otherwise crashy crashy.
https://bugzilla.gnome.org/show_bug.cgi?id=657849
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 96161ec..7366eb3 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]