This commit is contained in:
twinaphex 2016-01-26 01:27:23 +01:00
parent 5aca126ffe
commit e386bc4963

View File

@ -462,12 +462,10 @@ void path_parent_dir(char *path)
**/
const char *path_basename(const char *path)
{
const char *last_hash = NULL;
const char *last = find_last_slash(path);
(void)last_hash;
#ifdef HAVE_COMPRESSION
const char *last_hash = NULL;
/* We cut either at the last hash or the last slash; whichever comes last */
last_hash = strchr(path,'#');