]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1294501: possible null deref
authorMichael Jerris <mike@jerris.com>
Wed, 22 Apr 2015 15:54:44 +0000 (10:54 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:24 +0000 (12:47 -0500)
src/switch_core_video.c

index 2c172681fd9075710d639cb506af706615bd627a..63d02dff3bb93d46148a2f6a0d18ed229717ab90 100644 (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;
 }