[Forensics-changes] [yara] 377/415: Minor performance improvement.
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:26 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 16ea7f186c45022806896d902c55eb056954a4a1
Author: msuvajac <msuvajac at gmail.com>
Date: Tue Jan 21 09:47:51 2014 +0100
Minor performance improvement.
---
libyara/exec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/exec.c b/libyara/exec.c
index 1e7170e..05c8e6f 100644
--- a/libyara/exec.c
+++ b/libyara/exec.c
@@ -323,7 +323,7 @@ int yr_execute_code(
ip += sizeof(uint64_t);
if (external->type == EXTERNAL_VARIABLE_TYPE_FIXED_STRING ||
external->type == EXTERNAL_VARIABLE_TYPE_MALLOC_STRING)
- push(strlen(external->string) > 0);
+ push(external->string[0] != '\0');
else
push(external->integer);
break;
@@ -550,4 +550,4 @@ int yr_execute_code(
// After executing the code the stack should be empty.
assert(sp == 0);
-}
\ No newline at end of file
+}
--
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