Fix abort because we used log too early
Can't use log in get_early_config. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
343140f845
commit
1a327b06ab
|
@ -510,8 +510,12 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for abundant positional arguments
|
// Check for abundant positional arguments
|
||||||
if (optind < argc)
|
if (optind < argc) {
|
||||||
log_fatal("compton doesn't accept positional arguments.");
|
// log is not initialized here yet
|
||||||
|
fprintf(stderr, "compton doesn't accept positional arguments.\n");
|
||||||
|
*exit_code = 1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue