diff --git a/historic/jam/src/rules.c b/historic/jam/src/rules.c index 949314118..a700ebd6e 100644 --- a/historic/jam/src/rules.c +++ b/historic/jam/src/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 diff --git a/jam_src/rules.c b/jam_src/rules.c index 949314118..a700ebd6e 100644 --- a/jam_src/rules.c +++ b/jam_src/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