Use true/false for verbose_log.

This commit is contained in:
Michael Drake 2012-11-05 17:06:49 +00:00
parent 621721417d
commit 5638887a4b

View File

@ -800,15 +800,15 @@ int main(int argc, char** argv)
error = xos_read_var_val_size("NetSurf$Logging", 0, os_VARTYPE_STRING,
&used, NULL, &type);
if (error != NULL || type != os_VARTYPE_STRING || used != -2) {
verbose_log = 1;
verbose_log = true;
} else {
error = xos_read_var_val("NetSurf$Logging", logging_env,
sizeof(logging_env), 0, os_VARTYPE_STRING,
&used, NULL, &type);
if (error != NULL || logging_env[0] != '0') {
verbose_log = 1;
verbose_log = true;
} else {
verbose_log = 0;
verbose_log = false;
}
}