fookb: Fix error handling when reading XPM files.
commitb8ce2c9cd247d2f4d8a7468a5e8a3f47c0c821e9
authorDoug Torrance <dtorrance@piedmont.edu>
Sun, 10 Sep 2017 01:24:25 +0000 (9 21:24 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 10 Sep 2017 06:57:41 +0000 (10 08:57 +0200)
treed7294e28992fa267d62193adec9b88b3de194e58
parent279eb3c3fe45541afe41f3d4580818a19938af22
fookb: Fix error handling when reading XPM files.

Previously, we would try and read the width and height of images read from
an XPM file *before* doing any error handling to determine whether we
successfully read the file in the first place.  If there had been an error,
then there would be a segfault.
fookb/images.c