diff libpurple/util.c @ 16556: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 b8b2e35ec7c6
children ec79e3ad09a9 fd6c3dc4641f
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);