From 72bc11b180dd024eca54b1ee1e64e916643b0936 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 00:46:26 +0200 Subject: ArchiveLookup: don't reset out arguments If we return false, their values are undefined. --- src/ArchiveLookup.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/ArchiveLookup.cxx b/src/ArchiveLookup.cxx index 4df7eaca1..f906ae8cf 100644 --- a/src/ArchiveLookup.cxx +++ b/src/ArchiveLookup.cxx @@ -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); -- cgit v1.2.3