Fix broken implementation of "Program" in .yapfaqrc.
authorThomas Hochstein <thh@inter.net>
Fri, 14 May 2010 19:58:15 +0000 (21:58 +0200)
committerThomas Hochstein <thh@inter.net>
Fri, 14 May 2010 19:58:15 +0000 (21:58 +0200)
Fixes #4.

Signed-off-by: Thomas Hochstein <thh@inter.net>
yapfaq.pl

index 97e4b78..5af5f8d 100644 (file)
--- a/yapfaq.pl
+++ b/yapfaq.pl
@@ -66,7 +66,7 @@ if (-f $RCFile) {
   warn "$0: W: .rc file $RCFile does not exist!\n";
 }
 
-$Options{'s'} = $Config{'Program'} if (!defined($Options{'s'}));
+$Options{'s'} = $Config{'Program'} if (defined($Config{'Program'}) && $Config{'Program'} && !defined($Options{'s'}));
 
 # read configuration (configured FAQs)
 my @Config;
This page took 0.010587 seconds and 4 git commands to generate.