diff libpurple/protocols/oscar/oscar.c @ 28873:3e5a37c743df

commit differences as a revision for now.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 04 Nov 2009 16:58:41 +0900
parents 9c40a91d6c39 d4c28c18c20a
children 9d17b1c09193
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Sun Oct 25 15:30:09 2009 +0900
+++ b/libpurple/protocols/oscar/oscar.c	Wed Nov 04 16:58:41 2009 +0900
@@ -2909,7 +2909,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++) {