[3.0] f6195d5 remove compile errors with -Werror
Lasse Karstensen
lkarsten at varnish-cache.org
Thu Nov 3 19:02:31 CET 2011
commit f6195d5cc503cc081a04533bfa526b03837fcede
Author: Lasse Karstensen <lasse at varnish-software.com>
Date: Mon Oct 31 10:39:48 2011 +0100
remove compile errors with -Werror
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 064d49a..dc7fb6f 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -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 : "-");
More information about the varnish-commit
mailing list