Skip to content

Commit

Permalink
bugfix: Fixed uninitialized path variable (#1502)
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierMalenfant authored Nov 7, 2024
1 parent 56daee6 commit c1aa68b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4405,9 +4405,8 @@ int main(int argc, char* argv[])
reginitializeinit(&inipath);
if (getregmode() == NULL)
{
TCHAR* path;
std::string ini_file_path = get_ini_file_path();
_tcscpy(path, ini_file_path.c_str());
TCHAR* path = my_strdup(ini_file_path.c_str());;
auto f = fopen(path, _T("r"));
if (!f)
f = fopen(path, _T("w"));
Expand Down

0 comments on commit c1aa68b

Please sign in to comment.