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 1509bab commit 897bc91Copy full SHA for 897bc91
lib/xy.h
@@ -1242,7 +1242,10 @@ xy_normalize_path (const char *path)
1242
1243
if (xy_str_start_with (new, "~"))
1244
{
1245
- xy_str_swap (&new, xy_2strcat (xy_os_home, xy_str_delete_prefix (new, "~")));
+ char *tmp = xy_str_delete_prefix (new, "~");
1246
+ char *joined = xy_2strcat (xy_os_home, tmp);
1247
+ free (tmp);
1248
+ xy_str_swap (&new, joined);
1249
}
1250
1251
if (xy.on_windows)
0 commit comments