svn commit: samba r3723 - in branches/SAMBA_4_0/source/lib: .

abartlet at samba.org abartlet at samba.org
Sat Nov 13 13:33:46 GMT 2004


Author: abartlet
Date: 2004-11-13 13:33:45 +0000 (Sat, 13 Nov 2004)
New Revision: 3723

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3723

Log:
Now that timestring() always returns talloc'ed memory, we don't need
this talloc strdup here (do we?).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/time.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/time.c
===================================================================
--- branches/SAMBA_4_0/source/lib/time.c	2004-11-13 11:33:01 UTC (rev 3722)
+++ branches/SAMBA_4_0/source/lib/time.c	2004-11-13 13:33:45 UTC (rev 3723)
@@ -347,7 +347,7 @@
 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);
 }
 
 



More information about the samba-cvs mailing list