Commit 74dd2249 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

No need to strdup the default varnishncsa format

parent f5892a5f
...@@ -678,6 +678,9 @@ parse_format(const char *format) ...@@ -678,6 +678,9 @@ parse_format(const char *format)
struct vsb *vsb; struct vsb *vsb;
char buf[256]; char buf[256];
if (format == NULL)
format = FORMAT;
vsb = VSB_new_auto(); vsb = VSB_new_auto();
AN(vsb); AN(vsb);
...@@ -1212,8 +1215,6 @@ main(int argc, char * const *argv) ...@@ -1212,8 +1215,6 @@ main(int argc, char * const *argv)
VSLQ_grouping[VUT.g_arg]); VSLQ_grouping[VUT.g_arg]);
/* Prepare output format */ /* Prepare output format */
if (format == NULL)
format = strdup(FORMAT);
parse_format(format); parse_format(format);
free(format); free(format);
format = NULL; format = NULL;
......
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