From: Wilfried Goesgens Date: Fri, 25 May 2012 10:35:23 +0000 (+0200) Subject: Crypto: remove unneded initialization pointed out by clang static analyzer. X-Git-Tag: v8.12~81 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=36ac32ab488eec4581384c5b1c14377e14a85b25 Crypto: remove unneded initialization pointed out by clang static analyzer. --- diff --git a/citadel/modules/crypto/serv_crypto.c b/citadel/modules/crypto/serv_crypto.c index 249d9960a..ea5428219 100644 --- a/citadel/modules/crypto/serv_crypto.c +++ b/citadel/modules/crypto/serv_crypto.c @@ -497,7 +497,7 @@ int client_readline_sslbuffer(StrBuf *Line, StrBuf *IOBuf, const char **Pos, int StrBufAppendBufPlain(Line, pos, StrLength(IOBuf) - (pos - ChrPtr(IOBuf)), 0); FlushStrBuf(IOBuf); - pos = *Pos = NULL; + *Pos = NULL; } else { int n = 0; @@ -510,7 +510,7 @@ int client_readline_sslbuffer(StrBuf *Line, StrBuf *IOBuf, const char **Pos, int if (StrLength(IOBuf) <= (pch - ChrPtr(IOBuf) + 1)) { FlushStrBuf(IOBuf); - pos = *Pos = NULL; + *Pos = NULL; } else *Pos = pch + 1;