httpd: used and not set bug
[rsc] --rw-rw-r-- M 898628 glenda sys 3054 Mar 20 08:46 sys/src/cmd/ip/httpd/log.c
/n/sourcesdump/2006/0320/plan9/sys/src/cmd/ip/httpd/log.c:44,49 -
/n/sourcesdump/2006/0321/plan9/sys/src/cmd/ip/httpd/log.c:44,50
if(c == nil)
return;
+ p = c->private;
bufe = buf + sizeof(buf);
now = time(nil);
tm = gmtime(now);
/n/sourcesdump/2006/0320/plan9/sys/src/cmd/ip/httpd/log.c:52,58 -
/n/sourcesdump/2006/0321/plan9/sys/src/cmd/ip/httpd/log.c:53,58
/* verbose logfile, for research on web traffic */
logfd = logall[today & 1];
if(logfd > 0){
- p = c->private;
if(c->hstop == c->header || c->hstop[-1] != '\n')
*c->hstop = '\n';
*c->hstop = '\0';
|