Commit f6195d5c authored by Lasse Karstensen's avatar Lasse Karstensen

remove compile errors with -Werror

parent 9d693b0d
...@@ -766,14 +766,13 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd, ...@@ -766,14 +766,13 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd,
case 'L': { case 'L': {
char *delim; char *delim;
char keyword[MAX_VCLLOG_KEYLENGTH]; char keyword[MAX_VCLLOG_KEYLENGTH];
char *startpos;
// Extract "key" from fname // Extract "key" from fname
delim = strchr(fname, ':'); delim = strchr(fname, ':');
if (delim == NULL) { if (delim == NULL) {
break; break;
} }
startpos = strncpy(keyword, delim+1, MAX_VCLLOG_KEYLENGTH); strncpy(keyword, delim+1, MAX_VCLLOG_KEYLENGTH);
h = vcl_log(lp, keyword); h = vcl_log(lp, keyword);
VSB_cat(os, h ? h : "-"); VSB_cat(os, h ? h : "-");
......
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