Permalink
Browse files

fix #304

  • Loading branch information...
shawnl committed Aug 29, 2018
1 parent e28823d commit 24f73c5cd8f839bd520eb52e91d0d26e07689373
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/daemon.c
View
@@ -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);
}

0 comments on commit 24f73c5

Please sign in to comment.