"Fossies" - the Fresh Open Source Software Archive

Member "pacpl-code/patches/fix_config_value_0.patch" (22 Aug 2019, 454 Bytes) of package /linux/privat/pacpl-6.1.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff --git a/pacpl.in b/pacpl.in
    2 index 5c28750..436e140 100644
    3 --- a/pacpl.in
    4 +++ b/pacpl.in
    5 @@ -175,7 +175,7 @@ if ($conf_file and -e $conf_file) {
    6      foreach (@conf_opts) {
    7          chomp;
    8          my ($k, $v) = split(/\s*=\s*/);
    9 -            $config{$k} = $v if exists($config{$k}) and $v;
   10 +            $config{$k} = $v if exists($config{$k}) and length($v);
   11              say "$lang{debug} $k = $v" if $debug == 1 and exists($config{$k});
   12      }
   13  }