From 51ad25e8ea0d75ea444de8607c84992157e56d43 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 29 Jan 2005 04:11:04 +0000 Subject: r5093: Make debugs less confusing when a 0 NTTIME is printed. Andrew Bartlett (This used to be commit 9493c47b1833a4a7781303f8139f1636f86bf126) --- source4/lib/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/time.c b/source4/lib/time.c index fd005215a1..e214179b6c 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -346,7 +346,11 @@ char *timestring(TALLOC_CTX *mem_ctx, time_t t) */ const char *nt_time_string(TALLOC_CTX *mem_ctx, NTTIME nt) { - time_t t = nt_time_to_unix(nt); + time_t t; + if (nt == 0) { + return "NTTIME(0)"; + } + t = nt_time_to_unix(nt); return timestring(mem_ctx, t); } -- cgit