]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* remake.c (update_file): [SV 44742] Keep double-colon rule status.
authorPaul Smith <psmith@gnu.org>
Sat, 11 Jul 2015 17:55:45 +0000 (13:55 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 12 Jul 2015 04:14:14 +0000 (00:14 -0400)
Fix suggested by Everett Boyer <EvBoyer@aol.com>

remake.c

index 0888cfff5c1b3d5b0086f9840ef92d856c2978e1..dc5ce2d04d7fafe8003ff95c0c416f17f4d510f4 100644 (file)
--- a/remake.c
+++ b/remake.c
@@ -349,7 +349,7 @@ update_file (struct file *file, unsigned int depth)
           {
             enum update_status new = update_file (d->file, depth + 1);
             if (new > status)
-              new = status;
+              status = new;
           }
       }