aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 00:46:26 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 00:46:26 +0200
commit72bc11b180dd024eca54b1ee1e64e916643b0936 (patch)
tree07a6ebbe13ec251ccbf2e1857ead03d3936ba88a /src
parent15c2538532c3f4073b8daa368d6fa1e0f43d871d (diff)
downloadmpd-72bc11b180dd024eca54b1ee1e64e916643b0936.tar.gz
mpd-72bc11b180dd024eca54b1ee1e64e916643b0936.tar.xz
mpd-72bc11b180dd024eca54b1ee1e64e916643b0936.zip
ArchiveLookup: don't reset out arguments
If we return false, their values are undefined.
Diffstat (limited to 'src')
-rw-r--r--src/ArchiveLookup.cxx4
1 files changed, 0 insertions, 4 deletions
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);