diff options
author | Roland McGrath <roland@redhat.com> | 1992-11-18 19:54:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-11-18 19:54:01 +0000 |
commit | fa0cf27f725fff8c17fd61832436b9bb63ecdee3 (patch) | |
tree | c47f6af01ceb926544785e1d8ff5c2ebd52b8f6d | |
parent | 4cbb8e0d70e763fa16f5d4a8921224c18cc14016 (diff) | |
download | gunmake-fa0cf27f725fff8c17fd61832436b9bb63ecdee3.tar.gz |
Formerly read.c.~44~
-rw-r--r-- | read.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1182,10 +1182,15 @@ record_files (filenames, pattern, pattern_percent, deps, commands_started, moredeps = this; } - d = firstdeps; - while (d->next != 0) - d = d->next; - d->next = moredeps; + if (firstdeps == 0) + firstdeps = moredeps; + else + { + d = firstdeps; + while (d->next != 0) + d = d->next; + d->next = moredeps; + } f->deps = firstdeps; } |