mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-12 00:18:59 +05:30
main.c: function my_basename
: also return NULL on error
This commit is contained in:
parent
44546b3d9c
commit
4570bf7609
@ -93,6 +93,7 @@ static char* my_basename(const char* raw_path) {
|
|||||||
free(path);
|
free(path);
|
||||||
PERROR_MACRO("malloc");
|
PERROR_MACRO("malloc");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t fname_len = strlen(path);
|
size_t fname_len = strlen(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user