summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 204d530e0b..0003b8b42d 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3621,8 +3621,8 @@ char *automount_server(char *user_name)
char *nis_map = (char *)lp_nis_home_map_name();
int home_server_len;
- /* set to default of no string */
- server_name[0] = 0;
+ /* set to default of local machine */
+ pstrcpy(server_name, local_machine);
if ((nis_error = yp_get_default_domain(&nis_domain)) != 0)
{