+/*
+ * wintime.c - Avoid trouble with time() returning (time_t)-1 on Windows.
+ */
+
#include "putty.h"
#include <time.h>
SYSTEMTIME st;
struct tm tm;
+ memset(&tm, 0, sizeof(tm)); /* in case there are any other fields */
+
GetLocalTime(&st);
tm.tm_sec=st.wSecond;
tm.tm_min=st.wMinute;