[Forensics-changes] [yara] 279/415: Remove warnings

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:43:15 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 5b7e9f5332abf47e9e67e63b64db4fdc541f7f61
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Tue Dec 3 15:47:19 2013 +0100

    Remove warnings
---
 libyara/parser.c | 4 ++--
 libyara/proc.c   | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libyara/parser.c b/libyara/parser.c
index 3182a79..501906f 100644
--- a/libyara/parser.c
+++ b/libyara/parser.c
@@ -214,9 +214,9 @@ YR_STRING* yr_parser_reduce_string_declaration(
   YR_ATOM_LIST_ITEM* atom_list = NULL;
   RE* re = NULL;
 
-  uint8_t* literal_string;
+  uint8_t* literal_string = NULL;
 
-  int literal_string_len;
+  int literal_string_len = 0;
   int max_string_len;
 
   YR_COMPILER* compiler = yyget_extra(yyscanner);
diff --git a/libyara/proc.c b/libyara/proc.c
index cc20efa..9925622 100644
--- a/libyara/proc.c
+++ b/libyara/proc.c
@@ -123,6 +123,8 @@ int yr_process_get_memory(
 
 #else
 
+#define _XOPEN_SOURCE 500
+
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/types.h>

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