summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/syslog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c
index 1d4afe7edc..351a477ec1 100644
--- a/ext/standard/syslog.c
+++ b/ext/standard/syslog.c
@@ -110,6 +110,7 @@ PHP_RINIT_FUNCTION(syslog)
} else {
BG(syslog_started)=0;
}
+ BG(syslog_device) = NULL;
return SUCCESS;
}
@@ -126,6 +127,7 @@ PHP_MSHUTDOWN_FUNCTION(syslog)
{
if (BG(syslog_device)) {
free(BG(syslog_device));
+ BG(syslog_device) = NULL;
}
return SUCCESS;
}