commit - 9e5e76f2b5af9b821eb7bcdacad898048121e9d8
commit + 5651557cadbffddcc7d51e2d8cd2f9559ecd05c0
blob - 8b014229808c17075258d7b7ecddd0732f8714af
blob + e57e9b6cb6ac4310c7288dcf3aa20af0f82225f2
--- FICS/settings.cpp
+++ FICS/settings.cpp
{
FILE *fp = nullptr;
- if (!is_regular_file(path)) {
- errx(1, "%s: either the config file is nonexistent"
- " -- or it isn't a regular file", __func__);
- } else if ((fp = fopen(path, "r")) == nullptr) {
+ if (path == nullptr)
+ errx(1, "%s: null path", __func__);
+ else if ((fp = fopen(path, "r")) == nullptr)
err(1, "%s: fopen", __func__);
- }
Interpreter_processAllLines(fp, path, is_recognized_setting,
install_setting);