tokyocabinet_all.o : myconf.h tcutil.h tchdb.h tcbdb.h tcfdb.h tctdb.h tcadb.h
-platform.o : basedefs.h platform.c
+platform.o : basedefs.h platform.c win32/platform.c
# END OF FILE
pthread_mutex_lock(&mutex);
struct tm *cas = gmtime(timep);
pthread_mutex_unlock(&mutex);
- if (result == NULL) {
- return NULL; /* was:cas */
+ if (result == NULL || cas == NULL) {
+ return NULL;
}
memcpy(result, cas, sizeof (struct tm));
return result;
pthread_mutex_lock(&mutex);
struct tm *cas = localtime(timep);
pthread_mutex_unlock(&mutex);
- if (result == NULL) {
+ if (result == NULL || cas == NULL) {
return NULL;
}
memcpy(result, cas, sizeof (struct tm));