From: Patrick G. Bridges Date: Wed, 20 Feb 2013 23:56:50 +0000 (-0700) Subject: Fix for option processing X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1810f8134ef829599525d30856970f0155da1f3;p=palacios.git Fix for option processing --- diff --git a/palacios/src/palacios/vmm_options.c b/palacios/src/palacios/vmm_options.c index 82f12d9..23b024e 100644 --- a/palacios/src/palacios/vmm_options.c +++ b/palacios/src/palacios/vmm_options.c @@ -52,6 +52,9 @@ void v3_parse_options(char *options) int parseKey = 1; int len; char *c; + + option_table = v3_create_htable(0, option_hash_fn, option_eq_fn); + if (!options) { return; } @@ -61,7 +64,6 @@ void v3_parse_options(char *options) strcpy(option_storage, options); c = option_storage; - option_table = v3_create_htable(0, option_hash_fn, option_eq_fn); while (c && *c) { /* Skip whitespace */ if ((*c == ' ')