summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/param/loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 84e8c1a2b7..a60118ad83 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6733,11 +6733,10 @@ static bool handle_include(int snum, const char *pszParmValue, char **ptr)
{
char *fname;
- if (bNoIncludes) {
- return true;
- }
-
if (strequal(pszParmValue, INCLUDE_REGISTRY_NAME)) {
+ if (bNoIncludes) {
+ return true;
+ }
if (bInGlobalSection) {
return process_registry_globals();
} else {