From f5ef42a9392c89e7783b6a08b61be9c75328637d Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Fri, 1 Apr 2022 10:07:28 +0200 Subject: [PATCH] Fix use of uninitialized variable. Closes #172. --- libyara/proc/linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libyara/proc/linux.c b/libyara/proc/linux.c index 6d8e55b7..a9e93c22 100644 --- a/libyara/proc/linux.c +++ b/libyara/proc/linux.c @@ -324,8 +324,8 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block( if (proc_info->next_block_end <= current_begin) { - int n, path_start; - char *p; + int path_start, n = 0; + char* p; while (fgets(buffer, sizeof(buffer), proc_info->maps) != NULL) {