diff options
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); } |