diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 09:50:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 09:50:37 -0700 |
commit | afe8a9070bc62db9cfde1e30147178c40d391d93 (patch) | |
tree | d237acac7915db89829db7da1d0405f2e595a68b /builtin/receive-pack.c | |
parent | 7a618493facb79639231f797e492fab51fac2ba4 (diff) | |
download | git-afe8a9070bc62db9cfde1e30147178c40d391d93.tar.gz |
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r-- | builtin/receive-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 49b846d960..e7728a217b 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -1678,7 +1678,7 @@ static void check_aliased_update_internal(struct command *cmd, } dst_name = strip_namespace(dst_name); - if ((item = string_list_lookup(list, dst_name)) == NULL) + if (!(item = string_list_lookup(list, dst_name))) return; cmd->skip_update = 1; @@ -2542,7 +2542,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix) PACKET_READ_CHOMP_NEWLINE | PACKET_READ_DIE_ON_ERR_PACKET); - if ((commands = read_head_info(&reader, &shallow)) != NULL) { + if ((commands = read_head_info(&reader, &shallow))) { const char *unpack_status = NULL; struct string_list push_options = STRING_LIST_INIT_DUP; |