Skip to content
Commit cf4343de authored by Benjamin Gilbert's avatar Benjamin Gilbert
Browse files

trestle: refactor reading of ImageDescription



Clean up add_properties(), move the background color property setting
here from parse_trestle_image_description(), remove an impossible NULL
check, and avoid potentially putting a NULL value into properties or
calling g_strstrip() on NULL.  Neither of the latter causes crashes, but
the g_strstrip() issue produces log messages to stderr.

In addition, rework the special-case property parsing to read from
osr->properties rather than reparsing the ImageDescription from scratch.

Signed-off-by: default avatarBenjamin Gilbert <bgilbert@cs.cmu.edu>
parent 587023f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment