diff --git a/src/engine/rules.c b/src/engine/rules.c index 949314118..a700ebd6e 100644 --- a/src/engine/rules.c +++ b/src/engine/rules.c @@ -166,7 +166,8 @@ static void bind_explicitly_located_target(void* xtarget, void* data) void bind_explicitly_located_targets() { - hashenumerate(targethash, bind_explicitly_located_target, (void*)0); + if (targethash) + hashenumerate(targethash, bind_explicitly_located_target, (void*)0); } /* TODO: this is probably not a good idea to use functions in other modules like