Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-11 20:36:12 +0300
committerJunio C Hamano <gitster@pobox.com>2022-10-11 20:36:12 +0300
commitb0416d8f4a574fadfaac19a69b9e5a1f8e4405d2 (patch)
tree84c248d3d4ce6684fafd41b1f10727139559bf35 /sequencer.c
parent644195e02f445bf4fcf79e47c339f593c7646c9e (diff)
parent45350aeb11e0d8b5f76a121dfb9fc053af8e6042 (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.c2
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;