[tools] testbot/cgi: Fix an operator precedence issue in Page::IsErrField().

Francois Gouget fgouget at codeweavers.com
Wed Jul 6 09:04:31 CDT 2022


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/ObjectModel/CGI/Page.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/lib/ObjectModel/CGI/Page.pm b/testbot/lib/ObjectModel/CGI/Page.pm
index 6e18c29ab4..1df5392930 100644
--- a/testbot/lib/ObjectModel/CGI/Page.pm
+++ b/testbot/lib/ObjectModel/CGI/Page.pm
@@ -342,7 +342,7 @@ Returns true if the error concerns the specified field.
 sub IsErrField($$)
 {
   my ($self, $FieldName) = @_;
-  return defined $self->{ErrField} and $self->{ErrField} eq $FieldName;
+  return (defined $self->{ErrField} and $self->{ErrField} eq $FieldName);
 }
 
 =pod
-- 
2.30.2




More information about the wine-devel mailing list