ArchiveLookup: don't reset out arguments

If we return false, their values are undefined.
This commit is contained in:
Max Kellermann 2013-10-17 00:46:26 +02:00
parent 15c2538532
commit 72bc11b180

View File

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