[Forensics-changes] [yara] 109/407: Remove unused variable

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:15 UTC 2017


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

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit fda7ef9b4b7f7380b5e87e794951e3c51c702cf2
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Oct 14 17:45:20 2014 +0200

    Remove unused variable
---
 libyara/modules/pe.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 7518b42..efdfb22 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -2351,7 +2351,6 @@ void pe_parse(
   PIMAGE_SECTION_HEADER section;
 
   char section_name[IMAGE_SIZEOF_SHORT_NAME + 1];
-  size_t str_size;
 
 #define OptionalHeader(field) \
   (pe->header->FileHeader.Machine == IMAGE_FILE_MACHINE_AMD64 ? \
@@ -2439,10 +2438,7 @@ void pe_parse(
     if (!struct_fits_in_pe(pe, section, IMAGE_SECTION_HEADER))
       break;
 
-    str_size = strlcpy(
-        section_name,
-        (char*) section->Name,
-        IMAGE_SIZEOF_SHORT_NAME + 1);
+    strlcpy(section_name, (char*) section->Name, IMAGE_SIZEOF_SHORT_NAME + 1);
 
     set_string(
         section_name,

-- 
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