# HG changeset patch # User Mark Doliner # Date 1257201599 0 # Node ID d4c28c18c20a5ad46e97df7ebe17ecd308b049e3 # Parent f7e78a9f7e50680748a7fd01e0088359c0c1e8ec Add a null check, just for the heck of it diff -r f7e78a9f7e50 -r d4c28c18c20a libpurple/protocols/oscar/oscar.c --- 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