artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cadac1
)
avoid displaying a NULL pointer
author
jsg
<jsg@openbsd.org>
Wed, 6 Aug 2014 12:29:43 +0000
(12:29 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 6 Aug 2014 12:29:43 +0000
(12:29 +0000)
ok deraadt@ reyk@
usr.sbin/httpd/logger.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/logger.c
b/usr.sbin/httpd/logger.c
index
5c9a4d7
..
aa256ed
100644
(file)
--- a/
usr.sbin/httpd/logger.c
+++ b/
usr.sbin/httpd/logger.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: logger.c,v 1.
3 2014/08/05 15:36:59 reyk Exp $
*/
+/* $OpenBSD: logger.c,v 1.
4 2014/08/06 12:29:43 jsg Exp $
*/
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@
-250,7
+250,7
@@
logger_log(struct imsg *imsg)
log = srv_conf->logerror;
if (log == NULL || log->log_fd == -1) {
- log_warnx("log file %s not opened", log
->log_name
);
+ log_warnx("log file %s not opened", log
? log->log_name : ""
);
return (0);
}