changeset 638:72ec4db929ed trunk

[svn] Do not throw SIGABRT when path == NULL, g_return_val_if_fail logs a critical message and will abort. Patch courtesy of Daniel Drake from Gentoo.
author chainsaw
date Sat, 18 Feb 2006 13:21:21 -0800
parents 2b06eb5e472d
children 9d2c175e458e
files audacious/skin.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/skin.c	Sat Feb 18 08:23:30 2006 -0800
+++ b/audacious/skin.c	Sat Feb 18 13:21:21 2006 -0800
@@ -838,7 +838,9 @@
     gboolean error;
 
     g_return_val_if_fail(skin != NULL, FALSE);
-    g_return_val_if_fail(path != NULL, FALSE);
+
+    if (!path)
+        return FALSE;
 
     skin_lock(skin);
     error = skin_load_nolock(skin, path, FALSE);