Crypto: remove unneded initialization pointed out by clang static analyzer.
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 25 May 2012 10:35:23 +0000 (12:35 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 25 May 2012 10:35:23 +0000 (12:35 +0200)
citadel/modules/crypto/serv_crypto.c

index 249d9960a1720ae468c2bc100bd8c2d5763db099..ea542821912b1244f53ee394e1d50c36f575c471 100644 (file)
@@ -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;