From d4c96eadbf4b1c54b0b7376b14dd339c12e4cc96 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Fri, 3 Nov 2023 22:26:15 +0100 Subject: [PATCH] bugfix: rename local variable to avoid shadow of global one --- src/osdep/amiberry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdep/amiberry.cpp b/src/osdep/amiberry.cpp index aad6e600a..f2c7ebe5c 100644 --- a/src/osdep/amiberry.cpp +++ b/src/osdep/amiberry.cpp @@ -3572,8 +3572,8 @@ const TCHAR** uaenative_get_library_dirs(void) bool data_dir_exists(char* directory) { if (directory == nullptr) return false; - std::string data_dir = "/data"; - std::string check_for = directory + data_dir; + std::string dataDir = "/data"; + std::string check_for = directory + dataDir; return my_existsdir(check_for.c_str()); }