From: Joey Schulze Date: Wed, 27 Feb 2008 19:01:58 +0000 (+0000) Subject: Don't try to modify something that doesn't exist X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=b981f07445d12360b71536f32d6925a0f2b10597;ds=sidebyside Don't try to modify something that doesn't exist --- diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index 35b9d8e..9aa76c6 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -237,7 +237,7 @@ sub read_input } elsif ($ans eq ".") { $ans = ''; } - $ans =~ s/ *$//; + $ans =~ s/ *$// if $ans; return $ans; }