mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-30 03:56:45 +02:00
code cleanup
This commit is contained in:
@ -243,9 +243,10 @@ void get_file_name(uint8_t *namebuf, uint8_t *pathname)
|
||||
|
||||
uint8_t *filename = strrchr(pathname, '/');
|
||||
|
||||
if (filename == NULL) {
|
||||
filename = pathname;
|
||||
} else if (!strlen(++filename)) {
|
||||
if (filename != NULL) {
|
||||
if (!strlen(++filename))
|
||||
filename = pathname;
|
||||
} else {
|
||||
filename = pathname;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user