aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 00:35:58 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 00:36:52 +0200
commit1b8a1d4140c58030bc71665eef4dc3485812817e (patch)
treef463333b71117b2c64d3845e70c3a123d6607b80 /src/input
parente132d10aec524962c5b5cbe135930aaabccba810 (diff)
downloadmpd-1b8a1d4140c58030bc71665eef4dc3485812817e.tar.gz
mpd-1b8a1d4140c58030bc71665eef4dc3485812817e.tar.xz
mpd-1b8a1d4140c58030bc71665eef4dc3485812817e.zip
ArchiveLookup: return const strings
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ArchiveInputPlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/ArchiveInputPlugin.cxx b/src/input/ArchiveInputPlugin.cxx
index a43340994..84f0ca168 100644
--- a/src/input/ArchiveInputPlugin.cxx
+++ b/src/input/ArchiveInputPlugin.cxx
@@ -45,14 +45,14 @@ input_archive_open(const char *pathname,
Error &error)
{
const struct archive_plugin *arplug;
- char *archive, *filename, *suffix, *pname;
struct input_stream *is;
if (!Path::IsAbsoluteFS(pathname))
return NULL;
- pname = g_strdup(pathname);
+ char *pname = g_strdup(pathname);
// archive_lookup will modify pname when true is returned
+ const char *archive, *filename, *suffix;
if (!archive_lookup(pname, &archive, &filename, &suffix)) {
FormatDebug(archive_domain,
"not an archive, lookup %s failed", pname);