summaryrefslogtreecommitdiffstats
path: root/options/m_property.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-26 20:32:14 +0100
committerwm4 <wm4@nowhere>2014-02-26 21:03:35 +0100
commit8461143ed7c0088fe08379898e74a7fbcf0a9d1e (patch)
tree43816d6e3b6165a640a862c282dc480c2b0f7bca /options/m_property.c
parentc176f2be39c26509fa1588ba1365427eff43b06f (diff)
downloadmpv-8461143ed7c0088fe08379898e74a7fbcf0a9d1e.tar.bz2
mpv-8461143ed7c0088fe08379898e74a7fbcf0a9d1e.tar.xz
m_option: don't make "unset" string and string list return NULL strings
This is a bit weird: m_option_string types (i.e. char*) can be NULL. But they're supposed to be treated just like empty strings. So don't make the m_option_type.print function return NULL for these values. Returning NULL would mean failure. This didn't matter much before, but was quite visible through the client API.
Diffstat (limited to 'options/m_property.c')
0 files changed, 0 insertions, 0 deletions