]> granicus.if.org Git - php/commitdiff
Fix for bug #1907.
authorAndrey Hristov <andrey@php.net>
Fri, 30 Jul 1999 13:17:29 +0000 (13:17 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 30 Jul 1999 13:17:29 +0000 (13:17 +0000)
main/main.c

index 7bc830723aaee9843f8efed3b880615940748cdf..b0adfc4eba1db985309453460e3bec3dadcfec37 100644 (file)
@@ -270,7 +270,7 @@ void php3_log_err(char *log_message)
        /* Try to use the specified logging location. */
        if (PG(error_log) != NULL) {
 #if HAVE_SYSLOG_H
-               if (strcmp(PG(error_log), "syslog")) {
+               if (!strcmp(PG(error_log), "syslog")) {
                        syslog(LOG_NOTICE, log_message);
                        return;
                } else {