0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

m_option: fix key/value list string conversion

Meh.
This commit is contained in:
wm4 2014-02-26 20:57:42 +01:00
parent 5bfe131340
commit 25f086973f

View File

@ -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;
}