summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip/httpd/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/ip/httpd/log.c')
-rw-r--r--sys/src/cmd/ip/httpd/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/httpd/log.c b/sys/src/cmd/ip/httpd/log.c
index ad97238e9..aee5c8da7 100644
--- a/sys/src/cmd/ip/httpd/log.c
+++ b/sys/src/cmd/ip/httpd/log.c
@@ -52,7 +52,7 @@ writelog(HConnect *c, char *fmt, ...)
/* verbose logfile, for research on web traffic */
logfd = logall[today & 1];
- if(logfd > 0){
+ if(logfd >= 0){
if(c->hstop == c->header || c->hstop[-1] != '\n')
*c->hstop = '\n';
*c->hstop = '\0';