diff options
author | Roland McGrath <roland@redhat.com> | 1993-06-04 00:15:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-06-04 00:15:12 +0000 |
commit | 00dc97cb8a139927f6a086967f2a2f6cec639174 (patch) | |
tree | 4ffae2054ae284fadb0bbdb691fe7fd6a5e53e67 /implicit.c | |
parent | 9766fe17755279033ef1059aa9bcca6d4e27dbf8 (diff) | |
download | gunmake-00dc97cb8a139927f6a086967f2a2f6cec639174.tar.gz |
Formerly implicit.c.~13~
Diffstat (limited to 'implicit.c')
-rw-r--r-- | implicit.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -408,10 +408,13 @@ pattern_search (file, archive, depth, recursions) p = savestring (p, strlen (p)); intermediate_patterns[deps_found] = intermediate_file->name; - found_files[deps_found] = p; intermediate_file->name = p; intermediate_files[deps_found] = intermediate_file; intermediate_file = 0; + /* Allocate an extra copy to go in FOUND_FILES, + because every elt of FOUND_FILES is consumed + or freed later. */ + found_files[deps_found] = savestring (p, strlen (p)); ++deps_found; continue; } |