]> git.ipfire.org Git - thirdparty/lxc.git/commit
coverity: don't use newname after null check
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 11 Aug 2014 14:10:04 +0000 (14:10 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 16 Aug 2014 01:43:13 +0000 (21:43 -0400)
commitbd0c964703cb345dd3509cf2171a1b0bea8697d8
treee156c796a9a3150afb4b3b135f7ea4874356b066
parent7ed0eea61f550c7930e7a93acbb1bad52eba236b
coverity: don't use newname after null check

Actually, get rid of the temporary variables, and set newname
and lxcpath to usable values if they were NULL.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c