From 5aaf5871d05683f41c36696b07572690415aeecb Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Mon, 13 Aug 2001 20:06:27 +0000 Subject: Don't cause an abort if the shortcut group is empty. 2001-08-13 Peter Williams * e-corba-shortcuts.c (shortcut_list_to_corba): Don't cause an abort if the shortcut group is empty. svn path=/trunk/; revision=11952 --- shell/ChangeLog | 5 +++++ shell/e-corba-shortcuts.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 16788744c1..1ec415f65d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Peter Williams + + * e-corba-shortcuts.c (shortcut_list_to_corba): Don't cause an abort + if the shortcut group is empty. + 2001-08-13 Ettore Perazzoli * Makefile.am (IDLS): Add `Evolution-common.idl'. diff --git a/shell/e-corba-shortcuts.c b/shell/e-corba-shortcuts.c index 5a834cb6c6..54181d803c 100644 --- a/shell/e-corba-shortcuts.c +++ b/shell/e-corba-shortcuts.c @@ -80,7 +80,8 @@ shortcut_list_to_corba (const GSList *shortcut_list, buffer[i].type = CORBA_string_dup (e_safe_corba_string (item->type)); } - CORBA_sequence_set_release (buffer, TRUE); + if (buffer) /* if we have 0 shortcuts, buffer = NULL */ + CORBA_sequence_set_release (buffer, TRUE); } -- cgit v1.2.3