[gaim-migrate @ 132]

Sun, 16 Apr 2000 00:57:38 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sun, 16 Apr 2000 00:57:38 +0000
changeset 122
c59d41332d82
parent 121
26bd3cceac73
child 123
cc3f0c97ea54

[gaim-migrate @ 132]
Fixed bug where if you erase your user info it segfaults.

src/dialogs.c file | annotate | diff | comparison | revisions
--- a/src/dialogs.c	Sat Apr 15 23:52:33 2000 +0000
+++ b/src/dialogs.c	Sun Apr 16 00:57:38 2000 +0000
@@ -898,6 +898,10 @@
 	save_prefs();
 
         buf = g_malloc(strlen(current_user->user_info) * 4);
+	if (!buf) {
+		buf = g_malloc(1);
+		buf[0] = 0;
+	}
         g_snprintf(buf, strlen(current_user->user_info) * 2, "%s", current_user->user_info);
         escape_text(buf);
         serv_set_info(buf);

mercurial