# HG changeset patch # User Eric Warmenhoven # Date 955846658 0 # Node ID 521db4bf5f28ca3c869d24f00616d0c723ebdb9a # Parent 3571b593f4239b80a085c7004a3a293c5415228f [gaim-migrate @ 132] Fixed bug where if you erase your user info it segfaults. committer: Tailor Script diff -r 3571b593f423 -r 521db4bf5f28 src/dialogs.c --- 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);