changeset 1915:271ed550c5b3

correct fmt_escape and fmt_unescape a bit
author Tomasz Mon <desowin@gmail.com>
date Sat, 29 Sep 2007 20:31:32 +0200
parents 5e88191720a7
children 75ba6205aab3
files src/scrobbler/fmt.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/scrobbler/fmt.c	Fri Sep 28 17:02:03 2007 +0200
+++ b/src/scrobbler/fmt.c	Sat Sep 29 20:31:32 2007 +0200
@@ -10,7 +10,7 @@
 char *fmt_escape(const char *str)
 {
 	if (str == NULL)
-		return "";
+		return NULL;
 
 	return curl_escape(str, 0);
 }
@@ -18,7 +18,7 @@
 char *fmt_unescape(char *str)
 {
 	if (str == NULL)
-		return "";
+		return NULL;
 
 	return curl_unescape(str, 0);
 }