From 944e10700c98f8ac71c2385fd96671167463fcf0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 28 Feb 2010 13:53:28 +0100 Subject: Remove unused assignments/initializations found with llvm-clang. --- transact.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'transact.c') diff --git a/transact.c b/transact.c index 857d7a35..85d8b009 100644 --- a/transact.c +++ b/transact.c @@ -529,8 +529,8 @@ int readheaders(int sock, tcp = line + linelen - 1; *tcp++ = '\r'; *tcp++ = '\n'; - *tcp++ = '\0'; - n++; + *tcp = '\0'; + /* n++; - not used later on */ linelen++; } else @@ -1332,7 +1332,7 @@ process_headers: cp = buf; *cp++ = '\r'; *cp++ = '\n'; - *cp++ = '\0'; + *cp = '\0'; n = stuffline(ctl, buf); if ((size_t)n == strlen(buf)) -- cgit v1.2.3