Commit 59f10690 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the -b argument passed to the function.

parent a0d0544d
......@@ -450,9 +450,9 @@ mgt_b_conv(const char *b_arg)
if (!strcasecmp(b_arg, "none"))
VSB_cat(vsb, "none;\n");
else if (*b_arg != '/')
VSB_printf(vsb, "{\n .host = \"%s\";\n}\n", optarg);
VSB_printf(vsb, "{\n .host = \"%s\";\n}\n", b_arg);
else
VSB_printf(vsb, "{\n .path = \"%s\";\n}\n", optarg);
VSB_printf(vsb, "{\n .path = \"%s\";\n}\n", b_arg);
AZ(VSB_finish(vsb));
fa->src = strdup(VSB_data(vsb));
AN(fa->src);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment