From d440df54a8a719d6da8f9d6556e1191bfdb38924 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 18:56:05 +0000 Subject: ** Fix for bug #471791 (Move away from asserts to g_ret*) svn path=/trunk/; revision=34159 --- shell/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/main.c') diff --git a/shell/main.c b/shell/main.c index 24183e553f..9fb14522a9 100644 --- a/shell/main.c +++ b/shell/main.c @@ -290,7 +290,7 @@ open_uris (GNOME_Evolution_Shell corba_shell, gchar **uris) CORBA_Environment ev; guint n_uris, ii; - g_assert (uris != NULL); + g_return_if_fail (uris != NULL); n_uris = g_strv_length (uris); CORBA_exception_init (&ev); @@ -316,7 +316,7 @@ idle_cb (gchar **uris) EShellConstructResult result; EShellStartupLineMode startup_line_mode; - g_assert (uris == NULL || g_strv_length (uris) > 0); + g_return_val_if_fail (uris == NULL || g_strv_length (uris) > 0, FALSE); #ifdef KILL_PROCESS_CMD kill_old_dataserver (); -- cgit v1.2.3