Commit bbb8a488 by Serge Hallyn

remove needless check for 'line' which cannot be NULl there

(found by coverity) Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 7e1667d7
......@@ -358,7 +358,7 @@ char *lxc_attach_getpwshell(uid_t uid)
continue;
/* trim line on the right hand side */
for (i = strlen(line); line && i > 0 && (line[i - 1] == '\n' || line[i - 1] == '\r'); --i)
for (i = strlen(line); i > 0 && (line[i - 1] == '\n' || line[i - 1] == '\r'); --i)
line[i - 1] = '\0';
/* split into tokens: first user name */
......
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