fix possible segv

SVN revision: 55706
This commit is contained in:
Mike Blumenkrantz 2010-12-22 22:47:46 +00:00
parent 7667571dc2
commit 2aa8241d9e
1 changed files with 2 additions and 2 deletions

View File

@ -51,10 +51,10 @@ e_mod_comp_update_tile_size_set(E_Update *up, int tsw, int tsh)
void
e_mod_comp_update_resize(E_Update *up, int w, int h)
{
unsigned char *ptiles = up->tiles, *p, *pp;
unsigned char *ptiles, *p, *pp;
int ptw, pth, x, y;
if ((up->w == w) && (up->h == h)) return;
if ((!up) || ((up->w == w) && (up->h == h))) return;
ptw = up->tw;
pth = up->th;