diff src/protocols/oscar/util.c @ 10116:9f358a718f38

[gaim-migrate @ 11153] I went through every commit email on oldstatus since we branched, and merged relevant things to HEAD that had only been applied on oldstatus. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 18 Oct 2004 19:02:33 +0000
parents c66345b33b88
children 7d31d61e6438
line wrap: on
line diff
--- 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++;