# HG changeset patch # User Sadrul Habib Chowdhury # Date 1265061017 0 # Node ID ed93baed53c2390631870ba9ab585b9fca8fdc27 # Parent 4931a24576bd2a474cd30752c31937b7929d3232 Look for non-null before processing theme input. Closes #10521 (again). diff -r 4931a24576bd -r ed93baed53c2 pidgin/gtkthemes.c --- a/pidgin/gtkthemes.c Fri Jan 29 14:23:15 2010 +0000 +++ b/pidgin/gtkthemes.c Mon Feb 01 21:50:17 2010 +0000 @@ -309,7 +309,7 @@ while (*i) { char l[64]; int li = 0; - while (!isspace(*i) && li < sizeof(l) - 1) { + while (*i && !isspace(*i) && li < sizeof(l) - 1) { if (*i == '\\' && *(i+1) != '\0') i++; l[li++] = *(i++);