summaryrefslogtreecommitdiffstats
path: root/demux/mf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-13 19:33:11 +0100
committerwm4 <wm4@nowhere>2013-11-13 20:10:17 +0100
commit894bf603e8ecb370dcf31b25c1598b4e5f454997 (patch)
tree3816125fefe3e9a683a009bbca3959fa13398345 /demux/mf.c
parent933fbf733362eee9db15dd2671c263781abd5635 (diff)
downloadmpv-894bf603e8ecb370dcf31b25c1598b4e5f454997.tar.bz2
mpv-894bf603e8ecb370dcf31b25c1598b4e5f454997.tar.xz
mf: silence compilation warning
Diffstat (limited to 'demux/mf.c')
-rw-r--r--demux/mf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/mf.c b/demux/mf.c
index 13021aa53a..d52865a920 100644
--- a/demux/mf.c
+++ b/demux/mf.c
@@ -49,8 +49,8 @@ char *mf_type = NULL; //"jpg";
static void mf_add(mf_t *mf, const char *fname)
{
- fname = talloc_strdup(mf, fname);
- MP_TARRAY_APPEND(mf, mf->names, mf->nr_of_files, fname);
+ char *entry = talloc_strdup(mf, fname);
+ MP_TARRAY_APPEND(mf, mf->names, mf->nr_of_files, entry);
}
mf_t *open_mf_pattern(void *talloc_ctx, char *filename)