mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-11-08 13:42:31 +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);
|
||||
PERROR_MACRO("malloc");
|
||||
exit(EXIT_FAILURE);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t fname_len = strlen(path);
|
||||
|
Loading…
Reference in New Issue
Block a user