Failure of config file parsing is a hard failure
compton will now quit if it fails to parse the config file. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
|
||||
#include <ev.h>
|
||||
|
||||
#include "err.h"
|
||||
#include "kernel.h"
|
||||
#include "common.h"
|
||||
#include "compiler.h"
|
||||
@ -2737,6 +2738,10 @@ session_init(int argc, char **argv, Display *dpy, const char *config_file,
|
||||
parse_config(&ps->o, config_file, &shadow_enabled,
|
||||
&fading_enable, &hasneg, winopt_mask);
|
||||
|
||||
if (IS_ERR(config_file_to_free)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Parse all of the rest command line options
|
||||
get_cfg(&ps->o, argc, argv, shadow_enabled, fading_enable, hasneg, winopt_mask);
|
||||
|
||||
|
Reference in New Issue
Block a user