From 7b842cf495b6f05561a806316c376120bcbf82a1 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sun, 14 Jun 2015 19:06:19 +0300
Subject: [PATCH] Fix a precedence issue in breakPointEvalExpr() return value

Bug: https://bugs.debian.org/783756
---
 ptkdb.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ptkdb.pm b/ptkdb.pm
index cd77fda..fc9fec2 100644
--- a/ptkdb.pm
+++ b/ptkdb.pm
@@ -4047,7 +4047,7 @@ sub breakPointEvalExpr {
   
  $DB::window->DoAlert($@) if $@ ;
 
-  return $result[0] or @result ; # we could have a case where the 1st element is undefined
+  return ($result[0] or @result) ; # we could have a case where the 1st element is undefined
   # but subsequent elements are defined
 
 } # end of breakPointEvalExpr
-- 
2.1.4

