diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-26 16:35:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-31 23:07:45 +0300 |
commit | f70d54001cd1b975db6f4668a6d54dbae7a8ac92 (patch) | |
tree | 9025875d74dda4dfb6766c555aba04700d8d0423 /src/map/log.c | |
parent | 0a9cee0a94185f9fabd8fd615139836a64d369f2 (diff) | |
download | hercules-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/log.c')
-rw-r--r-- | src/map/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |