summaryrefslogtreecommitdiff
path: root/source3/lib/substitute.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r--source3/lib/substitute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index c6d61bce95..884f038e6d 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -280,8 +280,8 @@ static char *automount_path(const char *user_name)
#if (defined(HAVE_NETGROUP) && defined (WITH_AUTOMOUNT))
if (lp_nis_home_map()) {
- char *home_path_start;
- char *automount_value = automount_lookup(user_name);
+ const char *home_path_start;
+ const char *automount_value = automount_lookup(user_name);
if(strlen(automount_value) > 0) {
home_path_start = strchr_m(automount_value,':');