diff options
author | wm4 <wm4@nowhere> | 2016-09-02 19:00:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-02 21:21:47 +0200 |
commit | 9770ce6c44cd26e7b9e5b525c3222281d32dcb6f (patch) | |
tree | 092ed3f229b658126777dfd9fdf15d4cad976f69 /options/parse_commandline.h | |
parent | b92d3b6d4486aa2630e7e3ae87506b9870638afa (diff) | |
download | mpv-9770ce6c44cd26e7b9e5b525c3222281d32dcb6f.tar.bz2 mpv-9770ce6c44cd26e7b9e5b525c3222281d32dcb6f.tar.xz |
m_config: make sure profile values are never NULL
Apparently this was supposed to be handled - but badly at best. Make
unset values always have the value "" instead of NULL to avoid
special-cases.
In particular, this fixes passing NULL to a %s format specifier to
printf in show_profile(). Glibc prints this as "(null)", but it's
undefined behavior, and other libcs can crash.
Diffstat (limited to 'options/parse_commandline.h')
0 files changed, 0 insertions, 0 deletions