Commit 66cafce6 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] sparse: lib/string.c sparse fix

A classic..

  lib/string.c:165:19: warning: assignment expression in conditional

From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
parent 4596dce9
...@@ -162,7 +162,7 @@ char * strncat(char *dest, const char *src, size_t count) ...@@ -162,7 +162,7 @@ char * strncat(char *dest, const char *src, size_t count)
if (count) { if (count) {
while (*dest) while (*dest)
dest++; dest++;
while ((*dest++ = *src++)) { while ((*dest++ = *src++) != 0) {
if (--count == 0) { if (--count == 0) {
*dest = '\0'; *dest = '\0';
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment