Remove some warnings and fix windows build.
Initialize some variables to make GCC happy and switch from using index to
strchr. index is not available on Windows.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6653 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/vl.c b/vl.c
index 8e59cd8..1d96a31 100644
--- a/vl.c
+++ b/vl.c
@@ -4641,8 +4641,8 @@
const char *pid_file = NULL;
int autostart;
const char *incoming = NULL;
- int fd;
- struct passwd *pwd;
+ int fd = 0;
+ struct passwd *pwd = NULL;
const char *chroot_dir = NULL;
const char *run_as = NULL;