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.
  • Loading branch information
LMattsson committed Oct 9, 2024
1 parent e758979 commit dbb6ee4
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 dbb6ee4

Please sign in to comment.