git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] builtin/receive-pack: dead initializer for retval in check_nonce
@ 2018-10-20  7:08 Carlo Marcelo Arenas Belón
  2018-10-20 16:45 ` Torsten Bögershausen
  0 siblings, 1 reply; 4+ messages in thread
From: Carlo Marcelo Arenas Belón @ 2018-10-20  7:08 UTC (permalink / raw)
  To: git; +Cc: gitster, Carlo Marcelo Arenas Belón

NONCE_BAD is explicitly set when needed with the fallback
instead as NONCE_SLOP

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 builtin/receive-pack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 95740f4f0e..ecce3d4043 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -507,7 +507,7 @@ static const char *check_nonce(const char *buf, size_t len)
 	char *nonce = find_header(buf, len, "nonce", NULL);
 	timestamp_t stamp, ostamp;
 	char *bohmac, *expect = NULL;
-	const char *retval = NONCE_BAD;
+	const char *retval;
 
 	if (!nonce) {
 		retval = NONCE_MISSING;
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-22  3:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-20  7:08 [PATCH] builtin/receive-pack: dead initializer for retval in check_nonce Carlo Marcelo Arenas Belón
2018-10-20 16:45 ` Torsten Bögershausen
2018-10-21 10:00   ` Carlo Arenas
2018-10-22  3:35   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).