Fix crash when loading resource without a map
authorP. F. Chimento <philip.chimento@gmail.com>
Mon, 22 Nov 2010 20:54:41 +0000 (21:54 +0100)
committerP. F. Chimento <philip.chimento@gmail.com>
Mon, 22 Nov 2010 20:54:41 +0000 (21:54 +0100)
commit4884a6e823e53b0d0e61ae122cd1083ea10aebea
tree1362f7aaf3980d1bfb6639795ca9f7f7eafecba2
parentb57624149a9c9d937f91f4c7838d9d68f11f7e10
Fix crash when loading resource without a map

The Glk program now fails gracefully when trying to load an image
resource without having loaded a resource map first: it prints a warning
and doesn't load the image, instead of crashing.
libchimara/chimara-glk.c
libchimara/graphics.c