Skip to content
Snippets Groups Projects
Commit 230e7940 authored by Simon McVittie's avatar Simon McVittie
Browse files

wrap: Really fail on invalid --env-if-host argument

parent e80542b4
No related branches found
No related tags found
No related merge requests found
......@@ -856,9 +856,12 @@ main (int argc,
const char *equals = strchr (opt_env_if_host[i], '=');
if (equals == NULL)
g_printerr ("%s: --env-if-host argument must be of the form "
"NAME=VALUE, not \"%s\"\n",
g_get_prgname (), opt_env_if_host[i]);
{
g_printerr ("%s: --env-if-host argument must be of the form "
"NAME=VALUE, not \"%s\"\n",
g_get_prgname (), opt_env_if_host[i]);
goto out;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment