ArchiveLookup: don't reset out arguments
If we return false, their values are undefined.
This commit is contained in:
parent
15c2538532
commit
72bc11b180
@ -61,10 +61,6 @@ archive_lookup(char *pathname, const char **archive,
|
||||
struct stat st_info;
|
||||
bool ret = false;
|
||||
|
||||
*archive = NULL;
|
||||
*inpath = NULL;
|
||||
*suffix = NULL;
|
||||
|
||||
pathdupe = g_strdup(pathname);
|
||||
len = idx = strlen(pathname);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user