From f70d54001cd1b975db6f4668a6d54dbae7a8ac92 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Dec 2014 16:35:12 +0300 Subject: Improve performance a bit by removing strlen(str) > 0. --- src/map/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/log.c') diff --git a/src/map/log.c b/src/map/log.c index 9dcf1f359..f18efbfb7 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -368,7 +368,7 @@ void log_sql_init(void) { exit(EXIT_FAILURE); ShowStatus(""CL_WHITE"[SQL]"CL_RESET": Successfully '"CL_GREEN"connected"CL_RESET"' to Database '"CL_WHITE"%s"CL_RESET"'.\n", logs->db_name); - if( strlen(map->default_codepage) > 0 ) + if (map->default_codepage[0] != '\0') if ( SQL_ERROR == SQL->SetEncoding(logs->mysql_handle, map->default_codepage) ) Sql_ShowDebug(logs->mysql_handle); } -- cgit v1.2.3-60-g2f50