summaryrefslogtreecommitdiffstats
path: root/common/encode.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-12 14:33:56 +0100
committerwm4 <wm4@nowhere>2015-01-12 14:33:56 +0100
commit8144d142e40b7ff185f33bf6a0d974958e873f8b (patch)
tree8837526f9335f7e0451f8c744adc33cb24acf71b /common/encode.h
parentda2dbd74dab1301b31be1a143a93033297cf0e3e (diff)
downloadmpv-8144d142e40b7ff185f33bf6a0d974958e873f8b.tar.bz2
mpv-8144d142e40b7ff185f33bf6a0d974958e873f8b.tar.xz
player: don't set tag strings to NULL
bstr is a bounded string type, consisting of a pointer and a length value. If the length is 0, the pointer can be NULL. This is somewhat logical due to how this abstraction works, but it can leak when converting to C strings. talloc_strndup() returns NULL instead of "" in this case, which broke some other code. Use bstrto0() instead, which is the "proper" function to convert bstr to char*. Fixes #1462.
Diffstat (limited to 'common/encode.h')
0 files changed, 0 insertions, 0 deletions