# HG changeset patch # User Ethan Blanton # Date 1070660520 0 # Node ID 85abf91f2387f0e248dd72620f918d4e40b1e82b # Parent a481ffe303d2913a7fd0df2c0839b48dafc5e4b0 [gaim-migrate @ 8417] I suppose this is reasonable... committer: Tailor Script diff -r a481ffe303d2 -r 85abf91f2387 src/stringref.c --- 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;