From 80ba19a4667ffae5bdf2ec00afbf016cdcb431f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Wed, 15 Jul 2020 23:02:06 +0200 Subject: [PATCH] Do not initialize Regex match It is not used until it has a value. --- capa/features/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/features/__init__.py b/capa/features/__init__.py index 9d18b8bd..40773a51 100644 --- a/capa/features/__init__.py +++ b/capa/features/__init__.py @@ -99,7 +99,7 @@ class Regex(String): raise ValueError( "invalid regular expression: %s it should use Python syntax, try it at https://pythex.org" % value ) - self.match = "" + self.match = None def evaluate(self, ctx): for feature, locations in ctx.items():