summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorben <ben@13f79535-47bb-0310-9956-ffa450edef68>2000-01-23 01:13:47 +0000
committerben <ben@13f79535-47bb-0310-9956-ffa450edef68>2000-01-23 01:13:47 +0000
commited8e477f9be56edbdaec18813c931e0876f0b9b3 (patch)
treec0064c71408e1eafbedd4e36c22e10d66a68a45d /time
parenta0aa952c43531e8199b4e90a63174d8c17ab16a1 (diff)
downloadlibapr-ed8e477f9be56edbdaec18813c931e0876f0b9b3.tar.gz
Make interprocess mutexes actually choose, fix semaphore mutexes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59613 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/unix/timestr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/time/unix/timestr.c b/time/unix/timestr.c
index afeb38ddf..1ece0c6dd 100644
--- a/time/unix/timestr.c
+++ b/time/unix/timestr.c
@@ -56,6 +56,8 @@
#include "atime.h"
#include "apr_portable.h"
+#include <string.h>
+
API_VAR_EXPORT const char ap_month_snames[12][4] =
{
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
@@ -159,6 +161,7 @@ ap_status_t ap_strftime(char *s, ap_size_t *retsize, ap_size_t max,
const char *format, ap_exploded_time_t *xt)
{
struct tm tm;
+
memset(&tm, 0, sizeof tm);
tm.tm_sec = xt->tm_sec;
tm.tm_min = xt->tm_min;