Skip to content

Commit cc3abdd

Browse files
committed
Allow empty value for config values
Fixed so config variables can pass an empty argument. Solves issue #1791. (cherry picked from commit dbb6ee4)
1 parent cf1f538 commit cc3abdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unix/vncserver/vncserver.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ sub LoadConfig {
288288
if (open(IN, $configFile)) {
289289
while (<IN>) {
290290
next if /^#/;
291-
if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.+)$/) {
291+
if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.*)$/) {
292292
$k = lc($k); # must normalize key case
293293
if ($warnoverride && $config{$k}) {
294294
print("Warning: $configFile is overriding previously defined '$k' to be '$v'\n");

0 commit comments

Comments
 (0)