commit 89c166ba2a3442385573b9b2db193228ed89ddd4
parent d75414c9ca0ab32e7276ee16673d4bc904a5f335
Author: vaplv <vaplv@free.fr>
Date: Thu, 4 Dec 2014 12:21:45 +0100
Fix an issue in the dump of clock_time
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/clock_time.c b/src/clock_time.c
@@ -58,7 +58,7 @@ time_current(struct time* t)
t->sec = (int64_t)time.tv_sec;
t->nsec = (int64_t)time.tv_nsec;
#endif
-}
+}
void
time_sub(struct time* res, const struct time* a, const struct time* b)
@@ -128,6 +128,8 @@ time_dump
int64_t time_nsec = 0;
ASSERT(time && (!max_dump_len || dump));
+ if(real_dump_len)
+ *real_dump_len = 0;
#define DUMP(Time, Suffix) \
{ \