cfg: Initialize lock_fd to -1.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 21:23:15 +0000 (14:23 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 21:44:57 +0000 (14:44 -0700)
commit00034713a99b1fbc353699fe779360960eeca6a6
treef9538b02d3f7b56acc563420082718ead9424eb7
parente6b03b1eb757887097df8524b6ec5a658685fccd
cfg: Initialize lock_fd to -1.

Otherwise cfg_unlock() will close stdin on the first call.  Since
create_lockfile() calls remove_lockfile() as its first action, that's
on every useful execution.
lib/cfg.c