]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gpg-interface: remove an unnecessary NULL initialization
authorCollin Funk <collin.funk1@gmail.com>
Fri, 6 Feb 2026 01:46:10 +0000 (17:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Feb 2026 01:59:19 +0000 (17:59 -0800)
We assign this variable unconditionally, so we do not need to
initialize it to NULL where it is defined.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c

index 377c0cf49f83ad06c7d5ab7dad9745e91529fae7..87fb6605fba17426a89e469b727483f38c7063b5 100644 (file)
@@ -398,7 +398,7 @@ static void parse_ssh_output(struct signature_check *sigc)
 {
        const char *line, *principal, *search;
        char *to_free;
-       const char *key = NULL;
+       const char *key;
 
        /*
         * ssh-keygen output should be: