Permalink
Browse files

Guard against a potentially unitialized variable

  • Loading branch information...
1 parent c0ea8de commit 4cacb0ffa3486ae4600dfb17646426d544b58b78 rocky committed Jan 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Devel/Trepan/Interface/User.pm
View
1 lib/Devel/Trepan/Interface/User.pm
@@ -177,6 +177,7 @@ sub read_command($;$) {
my $last = $self->readline($prompt);
my $line = '';
$prompt .= '>> '; # continuation
+ $last ||= '';
while ($last && '\\' eq substr($last, -1)) {
$line .= substr($last, 0, -1) . "\n";
$last = $self->readline($prompt);

0 comments on commit 4cacb0f

Please sign in to comment.