Commit a7478944 by Dwight Engen Committed by Serge Hallyn

coverity: ftell returns a signed value

The check for flen < 0 could never have been true since flen was declared to be size_t (unsigned). Declare flen to be long since that is what ftell returns. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 8fb86a37
......@@ -1133,7 +1133,7 @@ static int update_name_and_paths(const char *path, struct lxc_container *oldc,
const char *newname, const char *newpath)
{
FILE *f;
size_t flen;
long flen;
char *contents;
const char *p0, *p1, *p2, *end;
const char *oldpath = oldc->get_config_path(oldc);
......
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