summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.c
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-07-07 23:08:05 +0200
committerOleg Oshmyan <chortos@inbox.lv>2020-10-27 01:03:04 +0200
commitb4f27d26079a3de98c4669eae8e11a2088494afb (patch)
tree10667e98c71f1c80b7f653af3ea92f6b30e4c18b /libass/ass_font.c
parentadd83539899242bf8ddbbac28fe2fde17c4c0bce (diff)
downloadlibass-b4f27d26079a3de98c4669eae8e11a2088494afb.tar.bz2
libass-b4f27d26079a3de98c4669eae8e11a2088494afb.tar.xz
Make STRVAL macros strdup-fail safe
Strictly speaking this is not neccessary in regular processing as the event and font fields are intialised with zeroes anyway and there's no old value to fallback too. However when processing style overrides, this can prevent a non-null value being replaced by NULL. This commit also gets rid of the unneccessary '!= NULL' check. Passing NULL to free is well defined and safe.
Diffstat (limited to 'libass/ass_font.c')
0 files changed, 0 insertions, 0 deletions