Commit 72bc11b1 authored by Max Kellermann's avatar Max Kellermann

ArchiveLookup: don't reset out arguments

If we return false, their values are undefined.
parent 15c25385
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment