1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-03 04:01:19 +05:30

main.c: function my_basename: also return NULL on error

This commit is contained in:
Intel A80486DX2-66 2024-07-07 19:49:01 +03:00
parent 44546b3d9c
commit 4570bf7609
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -93,6 +93,7 @@ static char* my_basename(const char* raw_path) {
free(path);
PERROR_MACRO("malloc");
exit(EXIT_FAILURE);
return NULL;
}
size_t fname_len = strlen(path);