commit 2e319276065bb4564aaa5d4990e058c3d8a6e95f from: Omar Polo date: Mon Aug 23 22:43:56 2021 UTC don't crash if -n is given without -c If -n is given without -c, config_path is still NULL and it would crash due to a NULL deference. commit - 83272dfee9eb5292ce21de55ebdbb3876a37fcb1 commit + 2e319276065bb4564aaa5d4990e058c3d8a6e95f blob - 01a16840b6c93039543cfa7c04460669e1aa4d9b blob + ad33957a1b0fbfefaa53e7b7446a32ca6239f756 --- gmid.c +++ gmid.c @@ -638,6 +638,8 @@ main(int argc, char **argv) fatal("can't specify options in config mode."); if (conftest) { + if (config_path == NULL) + fatal("missing configuration"); parse_conf(config_path); puts("config OK"); return 0;