Skip to content

Commit

Permalink
Allow empty value for config values
Browse files Browse the repository at this point in the history
Fixed so config variables can pass an empty argument.

Solves issue #1791.

(cherry picked from commit dbb6ee4)
  • Loading branch information
LMattsson committed Oct 22, 2024
1 parent cf1f538 commit cc3abdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unix/vncserver/vncserver.in
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ sub LoadConfig {
if (open(IN, $configFile)) {
while (<IN>) {
next if /^#/;
if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.+)$/) {
if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.*)$/) {
$k = lc($k); # must normalize key case
if ($warnoverride && $config{$k}) {
print("Warning: $configFile is overriding previously defined '$k' to be '$v'\n");
Expand Down

0 comments on commit cc3abdd

Please sign in to comment.