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/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 173835d0d..2bebd3c55 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3810,7 +3810,7 @@ int map_sql_init(void) exit(EXIT_FAILURE); ShowStatus("connect success! (Map Server Connection)\n"); - if( strlen(map->default_codepage) > 0 ) + if (map->default_codepage[0] != '\0') if ( SQL_ERROR == SQL->SetEncoding(map->mysql_handle, map->default_codepage) ) Sql_ShowDebug(map->mysql_handle); -- cgit v1.2.3-60-g2f50