From a89955db06511329273ff259600e186f772483af Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 4 Oct 2002 15:23:46 +0000 Subject: [PATCH] Bugfix. [SVN r15714] --- historic/jam/src/rules.c | 3 ++- jam_src/rules.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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