summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-26 20:57:42 +0100
committerwm4 <wm4@nowhere>2014-02-26 21:03:35 +0100
commit25f086973ff267495586c776e79f91bc5ddc44fa (patch)
tree30d564db2345ed64baceb263cf106a770c0b6d33 /options
parent5bfe131340a72f5c87a37e903310e21968bef467 (diff)
downloadmpv-25f086973ff267495586c776e79f91bc5ddc44fa.tar.bz2
mpv-25f086973ff267495586c776e79f91bc5ddc44fa.tar.xz
m_option: fix key/value list string conversion
Meh.
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 9f7d250967..ac814102be 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -1394,7 +1394,7 @@ static char *print_keyvalue_list(const m_option_t *opt, const void *src)
for (int n = 0; lst && lst[n] && lst[n + 1]; n += 2) {
if (ret[0])
ret = talloc_strdup_append(ret, ",");
- ret = talloc_asprintf_append("%s%s=%s", ret, lst[n], lst[n + 1]);
+ ret = talloc_asprintf_append(ret, "%s=%s", lst[n], lst[n + 1]);
}
return ret;
}