diff src/scrobbler/plugin.c @ 777:13bb2cf2f9e6 trunk

[svn] - ishttp() should check string is not NULL. closes #832.
author yaz
date Sat, 03 Mar 2007 19:27:40 -0800
parents c380f078aa26
children eb5fe37b785d
line wrap: on
line diff
--- a/src/scrobbler/plugin.c	Sat Mar 03 17:36:01 2007 -0800
+++ b/src/scrobbler/plugin.c	Sat Mar 03 19:27:40 2007 -0800
@@ -206,6 +206,7 @@
 
 static char ishttp(const char *a)
 {
+	g_return_val_if_fail(a != NULL, NULL);
 	return str_has_prefix_nocase(a, "http://");
 }