changeset 3116:a2d234851527 trunk

Switching from g_return_val_if_fail() to a more quiet return NULL
author Christian Birchinger <joker@netswarm.net>
date Fri, 20 Jul 2007 05:27:50 +0200
parents 81a19da542c5
children 4ba71e08fed0
files src/audacious/strings.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/strings.c	Thu Jul 19 20:06:03 2007 -0500
+++ b/src/audacious/strings.c	Fri Jul 20 05:27:50 2007 +0200
@@ -194,7 +194,9 @@
     gchar *out_str;
 
     /* NULL in NULL out */
-    g_return_val_if_fail(str != NULL, NULL);
+    /* g_return_val_if_fail(str != NULL, NULL); */
+    if (!str)
+        return NULL;
 
     /* Note: Currently, playlist calls this function repeatedly, even
      * if the string is already converted into utf-8.