From 53f7f17b06559d5be789242b99be44d0df142eb0 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 24 Nov 2024 10:43:16 +0100 Subject: [PATCH] Can anything be more cumbersome than C++? --- src/runtime/runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index e9aeca8..5f47266 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -549,7 +549,8 @@ sqfs_err private_sqfs_stat(sqfs* fs, sqfs_inode* inode, struct stat* st) { /* ================= End ELF parsing */ -if (getenv("FUSERMOUNT_PROG") == NULL) { +char* fusermount_prog = getenv("FUSERMOUNT_PROG"); +if (fusermount_prog == NULL) { char* new_prog = find_fusermount(); if (new_prog != NULL) { setenv("FUSERMOUNT_PROG", new_prog, 1);