summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-26 16:35:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:07:45 +0300
commitf70d54001cd1b975db6f4668a6d54dbae7a8ac92 (patch)
tree9025875d74dda4dfb6766c555aba04700d8d0423 /src/map/map.c
parent0a9cee0a94185f9fabd8fd615139836a64d369f2 (diff)
downloadhercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.gz
hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.bz2
hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.xz
hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.zip
Improve performance a bit by removing strlen(str) > 0.
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
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);