summaryrefslogtreecommitdiffstats
path: root/options/parse_configfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-02 19:00:34 +0200
committerwm4 <wm4@nowhere>2016-09-02 21:21:47 +0200
commit9770ce6c44cd26e7b9e5b525c3222281d32dcb6f (patch)
tree092ed3f229b658126777dfd9fdf15d4cad976f69 /options/parse_configfile.c
parentb92d3b6d4486aa2630e7e3ae87506b9870638afa (diff)
downloadmpv-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_configfile.c')
0 files changed, 0 insertions, 0 deletions