changeset 7772:85abf91f2387

[gaim-migrate @ 8417] I suppose this is reasonable... committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 05 Dec 2003 21:42:00 +0000
parents a481ffe303d2
children d9a7774b5b3c
files src/stringref.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/stringref.c	Fri Dec 05 21:40:44 2003 +0000
+++ b/src/stringref.c	Fri Dec 05 21:42:00 2003 +0000
@@ -33,6 +33,9 @@
 {
 	GaimStringref *newref;
 
+	if (value == NULL)
+		return NULL;
+
 	newref = g_malloc(sizeof(GaimStringref) + strlen(value) + 1);
 	strcpy(newref->value, value);
 	newref->ref = 1;