diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-10-11 20:36:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-11 20:36:12 +0300 |
commit | b0416d8f4a574fadfaac19a69b9e5a1f8e4405d2 (patch) | |
tree | 84c248d3d4ce6684fafd41b1f10727139559bf35 /sequencer.c | |
parent | 644195e02f445bf4fcf79e47c339f593c7646c9e (diff) | |
parent | 45350aeb11e0d8b5f76a121dfb9fc053af8e6042 (diff) |
Merge branch 'jk/sequencer-missing-author-name-check'
Typofix in code.
* jk/sequencer-missing-author-name-check:
sequencer: detect author name errors in read_author_script()
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c index a4d85f1fbd..debb2ecbaf 100644 --- a/sequencer.c +++ b/sequencer.c @@ -915,7 +915,7 @@ int read_author_script(const char *path, char **name, char **email, char **date, error(_("missing 'GIT_AUTHOR_EMAIL'")); if (date_i == -2) error(_("missing 'GIT_AUTHOR_DATE'")); - if (date_i < 0 || email_i < 0 || date_i < 0 || err) + if (name_i < 0 || email_i < 0 || date_i < 0 || err) goto finish; *name = kv.items[name_i].util; *email = kv.items[email_i].util; |