From f8374109ac06f8c0528dcf27f214f26c5d2aaf8d Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 18:44:00 +0000 Subject: ** Fix for bug #471791 (Move away from asserts to g_ret*) svn path=/trunk/; revision=34156 --- calendar/gui/dialogs/comp-editor-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs/comp-editor-util.c') diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c index dba2d5fda7..8aa7bbd734 100644 --- a/calendar/gui/dialogs/comp-editor-util.c +++ b/calendar/gui/dialogs/comp-editor-util.c @@ -316,7 +316,7 @@ comp_editor_strip_categories (const char *categories) if (!start) continue; - g_assert (start <= end); + g_return_val_if_fail (start <= end, NULL); len = end - start + 1; strncpy (new_p, start, len); @@ -336,7 +336,7 @@ comp_editor_strip_categories (const char *categories) if (start) { int len; - g_assert (start <= end); + g_return_val_if_fail (start <= end, NULL); len = end - start + 1; strncpy (new_p, start, len); -- cgit