0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-23 06:15:10 +00:00

Minor optimisation.

This commit is contained in:
Andrew Alderwick 2023-01-31 17:11:54 +00:00
parent 9d9d094e6a
commit 5538e539d2

View file

@ -140,10 +140,7 @@ retry_realpath(const char *file_name)
else
return NULL;
}
x = malloc(strlen(r) + 1);
strcpy(x, r);
free(r);
return x;
return r;
}
static void