summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/suff.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c
index b1f68c8..bd02152 100644
--- a/usr.bin/make/suff.c
+++ b/usr.bin/make/suff.c
@@ -635,7 +635,12 @@ Suff_EndTransform(void *gnp, void *dummy __unused)
{
Suff *s, *t;
- (void)SuffParseTransform(gn->name, &s, &t);
+ /*
+ * SuffParseTransform() may fail for special rules which are not
+ * actual transformation rules (e.g., .DEFAULT).
+ */
+ if (!SuffParseTransform(gn->name, &s, &t))
+ return (0);
DEBUGF(SUFF, ("deleting transformation from `%s' to `%s'\n",
s->name, t->name));
OpenPOWER on IntegriCloud