launch: Rearrange the code so config check is first.
authorRichard Jones <rjones@redhat.com>
Sat, 8 May 2010 08:28:19 +0000 (09:28 +0100)
committerRichard Jones <rjones@redhat.com>
Sat, 8 May 2010 08:28:19 +0000 (09:28 +0100)
commit55e9707f8591488542da48fc89738234b4d85016
treec6ab7fa1e9bb57cdc61064152b5c0e2b86ece9a4
parent301abf33c6985b61604dfae5db75cf767aa5e651
launch: Rearrange the code so config check is first.

Move the config state check first in the guestfs_launch function,
so that we don't reset g->launch_t or calculate the temporary
directory in the case where the launch function will immediately
return with an error.
src/guestfs.c