]> Kevux Git Server - fll/commitdiff
Regression: Fix mistake in variable name of controller program.
authorKevin Day <thekevinday@gmail.com>
Sat, 14 May 2022 20:24:17 +0000 (15:24 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 14 May 2022 20:24:17 +0000 (15:24 -0500)
When I added a missing variable to the function, I somehow overlooked a compiler error/warning.
This should be "global.main" and not "main".

level_3/controller/c/rule/private-rule.c

index 6bb29e84fb1af40711fa1a490ba12ec568f6eac0..75cd4cf3a16c2f4473fd422c1202591c2650c953 100644 (file)
@@ -4309,7 +4309,7 @@ extern "C" {
 
               controller_lock_print(global.main->error.to, global.thread);
 
-              fl_print_format("%r%[%QThe resource limit type is already specified%]%r", global.main->error.to.stream, f_string_eol_s, global.main->error.context, main->error.prefix, global.main->error.context, f_string_eol_s);
+              fl_print_format("%r%[%QThe resource limit type is already specified%]%r", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context, f_string_eol_s);
 
               controller_rule_print_error_cache(global.main->error, cache->action, F_false);