[Forensics-changes] [yara] 395/415: Fix warning: ‘error’ may be used uninitialized in this function

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:43:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository yara.

commit fba874f128b14638aa9c29150ba6dd91fda87335
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Fri Feb 7 13:12:52 2014 +0100

    Fix warning: ‘error’ may be used uninitialized in this function
---
 yara-python/yara-python.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index d626cfb..ac9a3c5 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -773,7 +773,7 @@ static PyObject * Rules_match(
   int pid = 0;
   int timeout = 0;
   int length;
-  int error;
+  int error = ERROR_SUCCESS;
   int fast_mode = FALSE;
 
   PyObject *externals = NULL;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list