don't crash when called without arguments

This commit is contained in:
Guido Günther 2009-05-07 07:17:25 +00:00
parent 1d6c713b18
commit 9f9ce6130d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu May 7 09:16:05 CEST 2009 Guido Günther <agx@sigxcpu.org>
* src/lxc_controller.c (main): don't crash when called without
arguments
Wed May 6 16:55:02 GMT 2009 Mark McLoughlin <markmc@redhat.com> Wed May 6 16:55:02 GMT 2009 Mark McLoughlin <markmc@redhat.com>
* src/qemu_driver.c: fix handling of <hostdev managed='yes'> * src/qemu_driver.c: fix handling of <hostdev managed='yes'>

View File

@ -745,6 +745,7 @@ int main(int argc, char *argv[])
cleanup: cleanup:
if (def)
virFileDeletePid(LXC_STATE_DIR, def->name); virFileDeletePid(LXC_STATE_DIR, def->name);
lxcControllerCleanupInterfaces(nveths, veths); lxcControllerCleanupInterfaces(nveths, veths);
unlink(sockpath); unlink(sockpath);