bug found by clang 4

This commit is contained in:
Michael Cook (mackal) 2017-03-16 12:52:58 -04:00
parent e7785d5693
commit fbb13ec416

View File

@ -10686,7 +10686,7 @@ void command_logs(Client *c, const Seperator *sep){
/* We use a general 'is_category_enabled' now, let's update when we update any output settings
This is used in hot places of code to check if its enabled in any way before triggering logs
*/
if (sep->arg[4] > 0){
if (atoi(sep->arg[4] > 0){
Log.log_settings[atoi(sep->arg[3])].is_category_enabled = 1;
}
else{