aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorLinn Mattsson <linma@cendio.se>2024-10-09 16:16:55 +0200
committerLinn Mattsson <linma@cendio.se>2024-10-09 16:31:47 +0200
commitdbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91 (patch)
tree54e4d5bbb02f4e2c0a13b0127fbbb554e4498052 /unix
parente758979b18eb1da9094dec2e3281e55f1c12a844 (diff)
downloadtigervnc-dbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91.tar.gz
tigervnc-dbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91.zip
Allow empty value for config values
Fixed so config variables can pass an empty argument. Solves issue #1791.
Diffstat (limited to 'unix')
-rwxr-xr-xunix/vncserver/vncserver.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/vncserver/vncserver.in b/unix/vncserver/vncserver.in
index ebdd3a97..fdcce0e9 100755
--- a/unix/vncserver/vncserver.in
+++ b/unix/vncserver/vncserver.in
@@ -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");