Skip to content

Commit

Permalink
fix #304
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnl committed Aug 29, 2018
1 parent e28823d commit 24f73c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static void dcc_warn_masquerade_whitelist(void) {
rs_log_crit(LIBDIR "/distcc not found. %s", warn);
dcc_exit(EXIT_COMPILER_MISSING);
}
if (!readdir(e) && !readdir(d)) {
if ((!e || !readdir(e)) && (!d || !readdir(d))) {
rs_log_crit(LIBDIR "/distcc empty. %s", warn);
dcc_exit(EXIT_COMPILER_MISSING);
}
Expand Down

0 comments on commit 24f73c5

Please sign in to comment.