# HG changeset patch # User michael # Date 1121042601 0 # Node ID c8d53188048dad3074ab689475821446f1a80b3c # Parent cdf74a04861484a45ba000e7bcfde730d6a5ed5e segfault fix diff -r cdf74a048614 -r c8d53188048d imgconvert.c --- a/imgconvert.c Sun Jul 10 00:22:13 2005 +0000 +++ b/imgconvert.c Mon Jul 11 00:43:21 2005 +0000 @@ -576,6 +576,8 @@ const uint8_t *src, int src_wrap, int width, int height) { + if((!dst) || (!src)) + return; for(;height > 0; height--) { memcpy(dst, src, width); dst += dst_wrap;