[CRIU] [PATCH 1/2] files: don't compare unsigned value against 0
Andrey Vagin
avagin at openvz.org
Sun Jul 7 16:18:37 EDT 2013
CID 1042292 (#1 of 1): Unsigned compared against 0 (NO_EFFECT)
unsigned_compare: This less-than-zero comparison of an unsigned value is
never true. "len < 0UL"
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
files.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files.c b/files.c
index ef9990e..3cbf52b 100644
--- a/files.c
+++ b/files.c
@@ -138,7 +138,7 @@ int do_dump_gen_file(struct fd_parms *p, int lfd,
int fill_fdlink(int lfd, const struct fd_parms *p, struct fd_link *link)
{
- size_t len;
+ int len;
link->name[0] = '.';
--
1.8.3.1
More information about the CRIU
mailing list