From a10f8e5fbd157a403e0a968ea2e59309a4751aae Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 19:00:36 +0000 Subject: ** Fix for bug #471791 (Move away from asserts to g_ret*) svn path=/trunk/; revision=34160 --- filter/filter-option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/filter-option.c') diff --git a/filter/filter-option.c b/filter/filter-option.c index 23962c0867..7fc8e1602a 100644 --- a/filter/filter-option.c +++ b/filter/filter-option.c @@ -157,7 +157,7 @@ find_option (FilterOption *fo, const char *name) void filter_option_set_current (FilterOption *option, const char *name) { - g_assert(IS_FILTER_OPTION(option)); + g_return_if_fail (IS_FILTER_OPTION(option)); option->current = find_option (option, name); } @@ -168,7 +168,7 @@ filter_option_add(FilterOption *fo, const char *value, const char *title, const { struct _filter_option *op; - g_assert(IS_FILTER_OPTION(fo)); + g_return_val_if_fail (IS_FILTER_OPTION(fo), NULL); g_return_val_if_fail(find_option(fo, value) == NULL, NULL); op = g_malloc(sizeof(*op)); -- cgit