summaryrefslogtreecommitdiff
path: root/lib/Term/Cap.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Term/Cap.pm')
-rw-r--r--lib/Term/Cap.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Term/Cap.pm b/lib/Term/Cap.pm
index d4d91c6827..5a73ecfc52 100644
--- a/lib/Term/Cap.pm
+++ b/lib/Term/Cap.pm
@@ -195,11 +195,8 @@ sub Tgetent { ## public -- static method
last;
}
}
- if (defined $entry) {
- $entry .= $_;
- } else {
- $entry = $_;
- }
+ defined $entry or $entry = '';
+ $entry .= $_;
};
while ($state != 0) {