Skip to content

Commit

Permalink
Fix array initialization in rc.initial.setlanip. Fixes #13583
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmcdonald91 committed Oct 27, 2022
1 parent 5ed254c commit b187fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/rc.initial.setlanip
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function add_gateway_to_config($interface, $gatewayip, $inet_type, $nonlocalgate
}

//set the new GW as the default if there isnt one set yet
init_config_arr('gateways');
init_config_arr(array('gateways'));
if ($item['ipprotocol'] == "inet" && empty(config_get_path('gateways/defaultgw4', ''))) {
config_set_path('gateways/defaultgw4', $new_name);
}
Expand Down

0 comments on commit b187fcc

Please sign in to comment.