We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41783b8 commit 948d551Copy full SHA for 948d551
lib/xy.h
@@ -1250,7 +1250,10 @@ xy_normalize_path (const char *path)
1250
1251
if (xy_str_start_with (new, "~"))
1252
{
1253
- xy_str_swap (&new, xy_2strcat (xy_os_home, xy_str_delete_prefix (new, "~")));
+ char *tmp = xy_str_delete_prefix (new, "~");
1254
+ char *joined = xy_2strcat (xy_os_home, tmp);
1255
+ free (tmp);
1256
+ xy_str_swap (&new, joined);
1257
}
1258
1259
if (xy.on_windows)
0 commit comments