Mercurial > pidgin
changeset 28487:d4c28c18c20a
Add a null check, just for the heck of it
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 02 Nov 2009 22:39:59 +0000 |
parents | f7e78a9f7e50 |
children | 807c73d10f7e |
files | libpurple/protocols/oscar/oscar.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Mon Nov 02 04:45:52 2009 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Nov 02 22:39:59 2009 +0000 @@ -2876,7 +2876,7 @@ if (text) { /* Read the number of contacts that we were sent */ errno = 0; - num = strtoul(text[0], NULL, 10); + num = text[0] ? strtoul(text[0], NULL, 10) : 0; if (num > 0 && errno == 0) { for (i=0; i<num; i++) {