From ffb7f74f0ba3c47109516c13320b149606b49b0a Mon Sep 17 00:00:00 2001 From: Matthew <25674682+spazzylemons@users.noreply.github.com> Date: Sun, 6 Aug 2023 18:32:33 -0400 Subject: [PATCH] fix inverted NULL check in n64dso (#407) --- tools/n64dso/n64dso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/n64dso/n64dso.c b/tools/n64dso/n64dso.c index 8c0c80cdc7..82440b2eba 100644 --- a/tools/n64dso/n64dso.c +++ b/tools/n64dso/n64dso.c @@ -113,7 +113,7 @@ elf_info_t *elf_info_init(const char *filename) void elf_info_free(elf_info_t *elf_info) { //Close attached file - if(!elf_info->file) { + if(elf_info->file) { fclose(elf_info->file); } //Free symbol arrays