changeset 946:acd4d81f2afc

[gaim-migrate @ 956] fix for segfault on systems with fucked up sprintf committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 06 Oct 2000 20:33:36 +0000
parents f8de52dbd0cb
children 1d021b2eb65d
files src/oscar.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Wed Oct 04 10:26:13 2000 +0000
+++ b/src/oscar.c	Fri Oct 06 20:33:36 2000 +0000
@@ -342,8 +342,12 @@
 	}
 
 
-	sprintf(debug_buff, "Email: %s\n", sess->logininfo.email);
-	debug_print(debug_buff);
+	if (sess->logininfo.email) {
+		sprintf(debug_buff, "Email: %s\n", sess->logininfo.email);
+		debug_print(debug_buff);
+	} else {
+		debug_print("Email is NULL\n");
+	}
 	sprintf(debug_buff, "Closing auth connection...\n");
 	debug_print(debug_buff);
 	gdk_input_remove(inpa);