diff options
author | Paul Smith <psmith@gnu.org> | 2009-09-12 21:28:33 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2009-09-12 21:28:33 +0000 |
commit | 958ea92eb8cf7eeb5af6752805d94b5ae3db99f9 (patch) | |
tree | 4e06d890becb39ac22afade3714e31681ac9dcec /remake.c | |
parent | 70c726c875f97ca5f3e46e4cfab7af9649f13023 (diff) | |
download | gunmake-958ea92eb8cf7eeb5af6752805d94b5ae3db99f9.tar.gz |
- Fix Savannah bug #21824: don't loop through NULL cmds pointer
- Fix Savannah bugs #24509, 18963: doc enhancements
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -82,7 +82,6 @@ int update_goal_chain (struct dep *goals) { int t = touch_flag, q = question_flag, n = just_print_flag; - unsigned int j = job_slots; int status = -1; #define MTIME(file) (rebuilding_makefiles ? file_mtime_no_search (file) \ @@ -263,7 +262,6 @@ update_goal_chain (struct dep *goals) touch_flag = t; question_flag = q; just_print_flag = n; - job_slots = j; } return status; @@ -872,7 +870,7 @@ notice_finished_file (struct file *file) really check the target's mtime again. Otherwise, assume the target would have been updated. */ - if (question_flag || just_print_flag || touch_flag) + if (question_flag || just_print_flag || touch_flag && file->cmds != 0) { for (i = file->cmds->ncommand_lines; i > 0; --i) if (! (file->cmds->lines_flags[i-1] & COMMANDS_RECURSE)) |