pidgin: 6624a8df: Add a null check, just for the heck of i...
markdoliner at pidgin.im
markdoliner at pidgin.im
Mon Nov 2 17:46:34 EST 2009
-----------------------------------------------------------------
Revision: 6624a8df38daf3e01d2c0af868a6c4fefdcad261
Ancestor: 18e7a8130e13b7ff22255c5ec7c8b6e77376045f
Author: markdoliner at pidgin.im
Date: 2009-11-02T22:39:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6624a8df38daf3e01d2c0af868a6c4fefdcad261
Modified files:
libpurple/protocols/oscar/oscar.c
ChangeLog:
Add a null check, just for the heck of it
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 6325eced5c6845cea48a229ec93c04e881daf2b8
+++ libpurple/protocols/oscar/oscar.c 68600abe048380d1e4f5a7a74a60e6ba704a028e
@@ -2876,7 +2876,7 @@ incomingim_chan4(OscarData *od, FlapConn
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++) {
More information about the Commits
mailing list