changeset 24423:8b5b73c768e4

Fix CID #386
author Richard Laager <rlaager@wiktel.com>
date Fri, 14 Nov 2008 06:41:47 +0000
parents 64395aea313c
children 2d677e8fe6d0
files libpurple/util.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Fri Nov 14 06:40:55 2008 +0000
+++ b/libpurple/util.c	Fri Nov 14 06:41:47 2008 +0000
@@ -3443,6 +3443,9 @@
 	char *cmd;
 	GHashTable *params = NULL;
 	int len;
+
+	g_return_if_fail(uri != NULL, NULL);
+
 	if (!(tmp = strchr(uri, ':')) || tmp == uri) {
 		purple_debug_error("util", "Malformed protocol handler message - missing protocol.\n");
 		return;