changeset 16548:0cd684e34403

sadrul fixed the next but not last crash
author Luke Schierer <lschiere@pidgin.im>
date Sat, 28 Apr 2007 00:36:53 +0000
parents 1b58a7fabb7e
children e87a490968bb
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sat Apr 28 00:15:10 2007 +0000
+++ b/libpurple/util.c	Sat Apr 28 00:36:53 2007 +0000
@@ -2696,6 +2696,7 @@
 purple_normalize(const PurpleAccount *account, const char *str)
 {
 	const char *ret = NULL;
+	static char buf[BUF_LEN];
 
 	if (account != NULL)
 	{
@@ -2712,7 +2713,6 @@
 
 	if (ret == NULL)
 	{
-		static char buf[BUF_LEN];
 		char *tmp;
 
 		tmp = g_utf8_normalize(str, -1, G_NORMALIZE_DEFAULT);