diff options
author | Randy Dunlap <rddunlap@osdl.org> | 2004-06-18 04:26:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-18 04:26:37 -0700 |
commit | 66cafce6faa7eb5242c320d36650fe8ac7ba5de6 (patch) | |
tree | 55ac3be976f7c47f5da2e8d717ef645304fae4fe /lib | |
parent | 4596dce98c28df5e80e131a75bac4f9070a67702 (diff) | |
download | history-66cafce6faa7eb5242c320d36650fe8ac7ba5de6.tar.gz |
[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: Randy Dunlap <rddunlap@osdl.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c index 603c7174f41e96..d4dbd2c9b8bdba 100644 --- a/lib/string.c +++ b/lib/string.c @@ -162,7 +162,7 @@ char * strncat(char *dest, const char *src, size_t count) if (count) { while (*dest) dest++; - while ((*dest++ = *src++)) { + while ((*dest++ = *src++) != 0) { if (--count == 0) { *dest = '\0'; break; |