From 0c918ef72a0bd73da71ca85533e55cc37ab777ff Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 28 Apr 2010 23:22:30 +0200 Subject: [PATCH] kexinit: simplify the code and avoid scan-build warning Previously it would say "Value stored to 's' is never read" due fourth increment of 's'. --- src/kex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kex.c b/src/kex.c index 09a6dd19..1eb08ab8 100644 --- a/src/kex.c +++ b/src/kex.c @@ -1067,10 +1067,7 @@ static int kexinit(LIBSSH2_SESSION * session) *(s++) = 0; /* Reserved == 0 */ - *(s++) = 0; - *(s++) = 0; - *(s++) = 0; - *(s++) = 0; + _libssh2_htonu32(s, 0); #ifdef LIBSSH2DEBUG {