(trunk, libT) #5714: ensure we don't add empty path components when creating an info dict in tr_makeMetaInfo().
This commit is contained in:
parent
99eda37b5e
commit
4a61241406
|
@ -320,7 +320,8 @@ getFileInfo (const char * topFile,
|
|||
char * walk = filename;
|
||||
const char * token;
|
||||
while ((token = tr_strsep (&walk, TR_PATH_DELIMITER_STR)))
|
||||
tr_variantListAddStr (uninitialized_path, token);
|
||||
if (*token)
|
||||
tr_variantListAddStr (uninitialized_path, token);
|
||||
tr_free (filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue