diff libpurple/ft.c @ 21866:03c950701fac

Move some curly braces around so static analysis tools can properly detect functions without having to preprocess the source
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 18 Dec 2007 15:56:06 +0000
parents 14afe5a92fc2
children f90462eb434b
line wrap: on
line diff
--- a/libpurple/ft.c	Tue Dec 18 15:53:05 2007 +0000
+++ b/libpurple/ft.c	Tue Dec 18 15:56:06 2007 +0000
@@ -479,10 +479,11 @@
 		/* Sending a file */
 		/* Check the filename. */
 #ifdef _WIN32
-		if (g_strrstr(filename, "../") || g_strrstr(filename, "..\\")) {
+		if (g_strrstr(filename, "../") || g_strrstr(filename, "..\\"))
 #else
-		if (g_strrstr(filename, "../")) {
+		if (g_strrstr(filename, "../"))
 #endif
+		{
 			char *utf8 = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
 
 			msg = g_strdup_printf(_("%s is not a valid filename.\n"), utf8);