Mercurial > pidgin
changeset 28929:ed93baed53c2
Look for non-null before processing theme input. Closes #10521 (again).
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 01 Feb 2010 21:50:17 +0000 |
parents | 4931a24576bd |
children | 362d787f0b87 |
files | pidgin/gtkthemes.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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++);