# HG changeset patch # User Stu Tomlinson # Date 1145112831 0 # Node ID a376b680ae84477227da118f65a9d2dfc2051bd4 # Parent 83ec59aefbe5ed4774578c89493850d8d519dc59 [gaim-migrate @ 16036] Fix Coverity CID 100, setting a string pref to NULL that was already NULL would crash committer: Tailor Script diff -r 83ec59aefbe5 -r a376b680ae84 src/prefs.c --- a/src/prefs.c Sat Apr 15 14:40:55 2006 +0000 +++ b/src/prefs.c Sat Apr 15 14:53:51 2006 +0000 @@ -769,7 +769,8 @@ if((value && !pref->value.string) || (!value && pref->value.string) || - strcmp(pref->value.string, value)) { + (value && pref->value.string && + strcmp(pref->value.string, value))) { g_free(pref->value.string); pref->value.string = g_strdup(value); do_callbacks(name, pref);