From d309966e3191405f5a17555c394b4a1934fbfcab Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 13 Nov 2004 13:33:45 +0000 Subject: r3723: Now that timestring() always returns talloc'ed memory, we don't need this talloc strdup here (do we?). Andrew Bartlett (This used to be commit d6aca06793b4bc72399c7357c5f357d6db036513) --- source4/lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/time.c b/source4/lib/time.c index e1f1395fea..b13ad24b34 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -347,7 +347,7 @@ 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); - return talloc_strdup(mem_ctx, timestring(mem_ctx, t)); + return timestring(mem_ctx, t); } -- cgit