changeset 1222:1020da0ea4bc

Fix dumping of time stamps. "conv" was used uninitialized.
author Thomas Klausner <tk@giga.or.at>
date Mon, 15 Jul 2013 15:08:02 +0200
parents 6f75842935f6
children ec741f31cd55
files libfdproto/dictionary_functions.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libfdproto/dictionary_functions.c	Thu Jun 20 11:51:24 2013 +0200
+++ b/libfdproto/dictionary_functions.c	Mon Jul 15 15:08:02 2013 +0200
@@ -322,6 +322,7 @@
 		return *buf;
 	}
 	
+	CHECK_MALLOC_DO ( gmtime_r(&val, &conv), return NULL);
 	CHECK_MALLOC_DO( fd_dump_extend(FD_DUMP_STD_PARAMS, "%d%02d%02dT%02d%02d%02d+00", conv.tm_year+1900, conv.tm_mon+1, conv.tm_mday, conv.tm_hour, conv.tm_min, conv.tm_sec), return NULL);
 	return *buf;
 }
"Welcome to our mercurial repository"