summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-07-26 01:30:17 +0200
committerVolker Lendecke <vl@samba.org>2014-07-30 15:59:11 +0200
commit27b0d9740ee21676be701664ed1f746e1a2861a6 (patch)
treec56f1cd8a2d86166fa17a5718aac786a7c0a9e83 /source3/param
parent86d68c94597e80c85d5cf7d13b9de8750c3f84dd (diff)
downloadsamba-27b0d9740ee21676be701664ed1f746e1a2861a6.tar.gz
samba-27b0d9740ee21676be701664ed1f746e1a2861a6.tar.xz
samba-27b0d9740ee21676be701664ed1f746e1a2861a6.zip
s3:param: move a variable into scope in lp_file_list_changed
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Jul 30 15:59:11 CEST 2014 on sn-devel-104
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 13bd9b9ff0..6b3e46ec81 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2296,8 +2296,6 @@ bool lp_file_list_changed(void)
DEBUG(6, ("lp_file_list_changed()\n"));
while (f) {
- time_t mod_time;
-
if (strequal(f->name, INCLUDE_REGISTRY_NAME)) {
struct smbconf_ctx *conf_ctx = lp_smbconf_ctx();
@@ -2311,7 +2309,9 @@ bool lp_file_list_changed(void)
return true;
}
} else {
+ time_t mod_time;
char *n2 = NULL;
+
n2 = talloc_sub_basic(talloc_tos(),
get_current_username(),
current_user_info.domain,