(trunk, libT) #5714: ensure we don't add empty path components when creating an info dict in tr_makeMetaInfo().

This commit is contained in:
Jordan Lee 2014-06-09 01:14:14 +00:00
parent 99eda37b5e
commit 4a61241406
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}