options/m_config_frontend: fix depth variable

f59ee85a48 changed the profile_depth to
stack, but this one place remained unchanged by mistake.

Fixes: f59ee85a48
Fixes: #16010
This commit is contained in:
Kacper Michajłow committed 2025-03-05 18:05:52 +01:00
1 parent 6735d0c7d0
commit 92a7d7f7d4
1 file changed
+1 -1
+1 -1
View File
@@ -459,7 +459,7 @@ static int m_config_handle_special_options(struct m_config *config,
config->recursion_depth += 1;
config->includefunc(config->includefunc_ctx, param, flags);
config->recursion_depth -= 1;
if (config->recursion_depth == 0 && config->profile_depth == 0)
if (config->recursion_depth == 0 && config->profile_stack_depth == 0)
m_config_finish_default_profile(config, flags);
return 1;
}