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