From 44fa5967dd5d1bc77996b2c6a9a7957db9fe3db7 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 21 Mar 2023 23:41:23 +0100 Subject: [PATCH] Fix uninitialized variable --- core/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/elf.c b/core/elf.c index ace5818..40e0cf2 100644 --- a/core/elf.c +++ b/core/elf.c @@ -16,7 +16,7 @@ uaddr_t loadElfProg(const char *prog, struct process * proc) { int i; - uaddr_t lastUserAddr; + uaddr_t lastUserAddr = 0; /** * Typedefs, constants and structure definitions as given by the ELF