Skip to content

Commit

Permalink
s3:lib: add braces around if-block in my_sam_name()
Browse files Browse the repository at this point in the history
Clean-up after moving the function.

Signed-off-by: Michael Adam <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>

Autobuild-User(master): Michael Adam <[email protected]>
Autobuild-Date(master): Tue Jan 26 03:19:18 CET 2016 on sn-devel-144
  • Loading branch information
obnoxxx committed Jan 26, 2016
1 parent d67d8e1 commit a2894cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source3/lib/util_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ const char *get_global_sam_name(void)

const char *my_sam_name(void)
{
if (lp_server_role() == ROLE_STANDALONE)
if (lp_server_role() == ROLE_STANDALONE) {
return lp_netbios_name();
}

return lp_workgroup();
}

0 comments on commit a2894cf

Please sign in to comment.