Commit 638f502d authored by Nils Goroll's avatar Nils Goroll

init arg_t variables

Fixes #2
parent 9e9e39f1
Pipeline #434 skipped
......@@ -134,6 +134,7 @@ static void
init_tx_arg(tx_t *tx, rec_node_t node[], rec_node_t *nptr[], arg_t *args)
{
init_tx(tx, node, nptr);
memset(args, 0, sizeof(*args));
args->name = NULL;
args->tag = SLT__Bogus;
}
......@@ -891,7 +892,7 @@ static const char
rec_node_t node[NTAGS], *nptr[NTAGS];
rec_t rec_method, rec_host, rec_url, rec_proto;
chunk_t chunk_method, chunk_host, chunk_url, chunk_proto;
arg_t cargs, bargs;
arg_t cargs = {0}, bargs = {0};
char *str;
size_t len;
......@@ -1437,7 +1438,7 @@ static const char
*test_format_VCL_disp(void)
{
tx_t tx;
arg_t args;
arg_t args = {0};
char *str, hitmiss[] = "m", handling[] = "n";
size_t len;
......@@ -1721,7 +1722,7 @@ static const char
*test_format_p_vxid(void)
{
tx_t tx;
arg_t args;
arg_t args = {0};
char *str;
size_t len;
......
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