Skip to content

Commit

Permalink
Add missing delimiter when hashing “-MF”
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosdahl committed Aug 10, 2018
1 parent 737bb19 commit 284e3a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ccache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,7 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
}
} else if (str_startswith(args->argv[i], "-MF")) {
// In either case, hash the "-MF" part.
hash_delimiter(hash, "arg");
hash_string_length(hash, args->argv[i], 3);

bool separate_argument = (strlen(args->argv[i]) == 3);
Expand Down

0 comments on commit 284e3a0

Please sign in to comment.