summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index d235c6a..4103555 100644
--- a/read.c
+++ b/read.c
@@ -1915,7 +1915,7 @@ record_files (struct nameseq *filenames, char *pattern, char *pattern_percent,
the target pattern, the target's name and the dependencies'
patterns into plain dependency names. */
- if (find_percent (this->name) != 0)
+ if (this != 0 && find_percent (this->name) != 0)
{
PATH_VAR (stem);
char *o;