diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 18:50:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 18:50:37 +0200 |
commit | afe8a9070bc62db9cfde1e30147178c40d391d93 (patch) | |
tree | d237acac7915db89829db7da1d0405f2e595a68b /builtin/commit.c | |
parent | contrib/coccinnelle: add equals-null.cocci (diff) | |
download | git-afe8a9070bc62db9cfde1e30147178c40d391d93.tar.xz git-afe8a9070bc62db9cfde1e30147178c40d391d93.zip |
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 883c16256c..2ef44f106b 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -858,7 +858,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, } s->fp = fopen_for_writing(git_path_commit_editmsg()); - if (s->fp == NULL) + if (!s->fp) die_errno(_("could not open '%s'"), git_path_commit_editmsg()); /* Ignore status.displayCommentPrefix: we do need comments in COMMIT_EDITMSG. */ |