CID:1294501: possible null deref

This commit is contained in:
Michael Jerris 2015-04-22 10:54:44 -05:00
parent d44ea400d5
commit 6ddf5a1bdf

View File

@ -1608,7 +1608,9 @@ SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_ima
return SWITCH_STATUS_FALSE;
}
*destP = dest;
if (destP) {
*destP = dest;
}
return SWITCH_STATUS_SUCCESS;
}