summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-18 01:34:59 +0000
committerTim Potter <tpot@samba.org>2003-09-18 01:34:59 +0000
commitaf780b0f01488e025b9257aa2f9aa34d42087745 (patch)
tree45b94a24e437025a3830e548edf294aa12bf9300
parent0becf4d68329ca599f3e34ee97ca3f72d0e9425f (diff)
downloadsamba-af780b0f01488e025b9257aa2f9aa34d42087745.tar.gz
samba-af780b0f01488e025b9257aa2f9aa34d42087745.tar.bz2
samba-af780b0f01488e025b9257aa2f9aa34d42087745.zip
Quieten a compiler warning.
(This used to be commit 9edf634569d89b152fc73eae70245cbf338b498d)
-rw-r--r--source4/param/loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 456a57c6fa..9aceaaa12a 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -1481,8 +1481,10 @@ void lp_talloc_free(void)
static char *lp_string(const char *s)
{
+#if 0 /* until REWRITE done to make thread-safe */
size_t len = s ? strlen(s) : 0;
char *ret;
+#endif
/* The follow debug is useful for tracking down memory problems
especially if you have an inner loop that is calling a lp_*()
@@ -1492,6 +1494,7 @@ static char *lp_string(const char *s)
#if 0
DEBUG(10, ("lp_string(%s)\n", s));
#endif
+
#if 0 /* until REWRITE done to make thread-safe */
if (!lp_talloc)
lp_talloc = talloc_init("lp_talloc");