image.argb32(): Check for zero height or width
commitc0661abc61a6f7d5dacd1d62477a6e6c44fbd217
authorUli Schlachter <psychon@znc.in>
Wed, 26 Aug 2009 19:17:10 +0000 (26 21:17 +0200)
committerJulien Danjou <julien@danjou.info>
Thu, 27 Aug 2009 09:04:09 +0000 (27 11:04 +0200)
treec2b0c79e0a56b0999a5a58ee3c3c43faf874364a
parent1c57970dd98310894eefdedd5f2eb03aa0f9a4b2
image.argb32(): Check for zero height or width

This makes image.argb32() fail in a better way if it is called with a zero size.

Bug found by anrxc and reported a FS#597 and FS#599.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
image.c