diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-13 19:46:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-13 19:46:30 +0800 |
commit | c94f0cf7538bae7e740d58893a8bfcf7eca49c97 (patch) | |
tree | 706d72fd2ae9a0d75218a199cfda1a56445f1672 /calendar | |
parent | 74317a21839e419614e1c8fd91dcc3d601f1b858 (diff) | |
download | gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar.gz gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar.bz2 gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar.lz gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar.xz gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.tar.zst gsoc2013-evolution-c94f0cf7538bae7e740d58893a8bfcf7eca49c97.zip |
NULL-terminate arrays that we pass to g_settings_set_strv
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/alarm-notify/config-data.c | 1 | ||||
-rw-r--r-- | calendar/gui/calendar-config.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/alarm-notify/config-data.c b/calendar/gui/alarm-notify/config-data.c index f44a832b4c..3275c4d219 100644 --- a/calendar/gui/alarm-notify/config-data.c +++ b/calendar/gui/alarm-notify/config-data.c @@ -348,6 +348,7 @@ config_data_save_blessed_program (const gchar *program) g_array_append_val (array, list[i]); g_array_append_val (array, program); + g_array_append_val (array, NULL); g_settings_set_strv (calendar_settings, "notify-programs", (const gchar *const *) array->data); g_strfreev (list); diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 85c2e3e60d..15df6920ae 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -368,6 +368,7 @@ calendar_config_set_day_second_zone (const gchar *location) array = g_ptr_array_new (); for (i = 0, l = lst; i < max_zones && l != NULL; i++, l = l->next) g_ptr_array_add (array, l->data); + g_ptr_array_add (array, NULL); g_settings_set_strv (config, "day-second-zones", (const gchar * const *) array->pdata); |