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,
case 'L': {
char *delim;
char keyword[MAX_VCLLOG_KEYLENGTH];
char *startpos;
// Extract "key" from fname
delim = strchr(fname, ':');
if (delim == NULL) {
break;
}
startpos = strncpy(keyword, delim+1, MAX_VCLLOG_KEYLENGTH);
strncpy(keyword, delim+1, MAX_VCLLOG_KEYLENGTH);
h = vcl_log(lp, keyword);
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