src/protocols/oscar/util.c

changeset 10116
054b064145a1
parent 9975
ea6d503b89cb
child 11253
81cbd43ef85e
--- a/src/protocols/oscar/util.c	Mon Oct 18 17:25:25 2004 +0000
+++ b/src/protocols/oscar/util.c	Mon Oct 18 19:02:33 2004 +0000
@@ -274,6 +274,9 @@
 faim_export int aim_sncmp(const char *sn1, const char *sn2)
 {
 
+	if ((sn1 == NULL) || (sn2 == NULL))
+		return -1;
+
 	do {
 		while (*sn2 == ' ')
 			sn2++;

mercurial