svn commit: samba r19415 - in branches/SAMBA_3_0/source/lib: .

gd at samba.org gd at samba.org
Thu Oct 19 15:47:20 GMT 2006


Author: gd
Date: 2006-10-19 15:47:19 +0000 (Thu, 19 Oct 2006)
New Revision: 19415

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

Log:
oh la la, always compile before commit, I'm very sorry.

Guenther

Modified:
   branches/SAMBA_3_0/source/lib/gencache.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/gencache.c
===================================================================
--- branches/SAMBA_3_0/source/lib/gencache.c	2006-10-19 15:43:25 UTC (rev 19414)
+++ branches/SAMBA_3_0/source/lib/gencache.c	2006-10-19 15:47:19 UTC (rev 19415)
@@ -56,11 +56,7 @@
 	/* skip file open if it's already opened */
 	if (cache) return True;
 
-	asprintf(&cache_fname, "%s/%s", lock_path("gencache.tdb"));
-	if (cache_fname == NULL) {
-		DEBUG(0, ("Filename allocation failed.\n"));
-		return False;
-	}
+	cache_fname = lock_path("gencache.tdb");
 
 	DEBUG(5, ("Opening cache file at %s\n", cache_fname));
 
@@ -75,7 +71,6 @@
 		}
 	}
 
-	SAFE_FREE(cache_fname);
 	if (!cache) {
 		DEBUG(5, ("Attempt to open gencache.tdb has failed.\n"));
 		return False;



More information about the samba-cvs mailing list