diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-01-29 04:11:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:22 -0500 |
commit | 51ad25e8ea0d75ea444de8607c84992157e56d43 (patch) | |
tree | a44a4a775a1c782be906ab4f0eed95319856eb19 /source4/lib | |
parent | ea2209e3db4dc1a6d455e01d5339b0b981c361b1 (diff) | |
download | samba-51ad25e8ea0d75ea444de8607c84992157e56d43.tar.gz samba-51ad25e8ea0d75ea444de8607c84992157e56d43.tar.bz2 samba-51ad25e8ea0d75ea444de8607c84992157e56d43.zip |
r5093: Make debugs less confusing when a 0 NTTIME is printed.
Andrew Bartlett
(This used to be commit 9493c47b1833a4a7781303f8139f1636f86bf126)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/time.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |