diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-07-13 10:05:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-13 15:20:20 -0700 |
commit | 927dc33070563d6646c903daf919dde80d8878d4 (patch) | |
tree | 6c5642e618a93255ef47be55b403160a12da999c /Documentation/RelNotes/1.7.1.1.txt | |
parent | *.h: add a few missing __attribute__((format)) (diff) | |
download | tgif-927dc33070563d6646c903daf919dde80d8878d4.tar.xz |
advice.h: add missing __attribute__((format)) & fix usage
Add the missing __attribute__((format)) checking to
advise_if_enabled(). This revealed a trivial issue introduced in
b3b18d16213 (advice: revamp advise API, 2020-03-02). We treated the
argv[1] as a format string, but did not intend to do so. Let's use
"%s" and pass argv[1] as an argument instead.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.1.1.txt')
0 files changed, 0 insertions, 0 deletions