Fix warning.

This commit is contained in:
Matthias Melcher
2024-01-22 21:05:02 +01:00
parent 7b01f0b39f
commit 667adac6dd
+1 -1
View File
@@ -544,7 +544,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode(
prefs_path_14.append('/');
if (prefs_path_14.find("~/")==0) // starts with "~"
prefs_path_14.replace(0, 1, home_path);
size_t h_env = prefs_path_14.find("${HOME}");
int h_env = prefs_path_14.find("${HOME}");
if (h_env!=prefs_path_14.npos)
prefs_path_14.replace(h_env, 7, home_path);
h_env = prefs_path_14.find("$HOME/");