Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/oscar.c @ 28860: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 | 63881771e1bf |
children | 807c73d10f7e 3e5a37c743df |
comparison
equal
deleted
inserted
replaced
28859:f7e78a9f7e50 | 28860:d4c28c18c20a |
---|---|
2874 gchar **text; | 2874 gchar **text; |
2875 text = g_strsplit(args->msg, "\376", 0); | 2875 text = g_strsplit(args->msg, "\376", 0); |
2876 if (text) { | 2876 if (text) { |
2877 /* Read the number of contacts that we were sent */ | 2877 /* Read the number of contacts that we were sent */ |
2878 errno = 0; | 2878 errno = 0; |
2879 num = strtoul(text[0], NULL, 10); | 2879 num = text[0] ? strtoul(text[0], NULL, 10) : 0; |
2880 | 2880 |
2881 if (num > 0 && errno == 0) { | 2881 if (num > 0 && errno == 0) { |
2882 for (i=0; i<num; i++) { | 2882 for (i=0; i<num; i++) { |
2883 struct name_data *data; | 2883 struct name_data *data; |
2884 gchar *message; | 2884 gchar *message; |