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>
Fri, 14 May 2010 16:23:44 +0000 (17:23 +0100)
commitf356c33df5575c3c71eaa9ca4d29420c9510a584
tree9d60a9d18e7f591db80d20247c1a68cea03244fd
parentfe3836a80f139ecbd13d82cf78cdaa76b7608858
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.
(cherry picked from commit 55e9707f8591488542da48fc89738234b4d85016)
src/guestfs.c