Unverified Commit 49ae1eef by Christian Brauner Committed by Stéphane Graber

lxc-unshare: do not pass NULL pointer

parent 46006ae3
......@@ -228,6 +228,9 @@ int main(int argc, char *argv[])
* dest: del + 1 == OUNT|PID
* src: del + 3 == NT|PID
*/
if (!namespaces)
usage(argv[0]);
while ((del = strstr(namespaces, "MOUNT")))
memmove(del + 1, del + 3, strlen(del) - 2);
......
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