From 8a4aa99f62eb82655b435dcd1d7dbd928474d999 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sun, 3 Feb 2019 19:40:43 +1100 Subject: [PATCH] remove a pointless NULL check from i_flipxy() im is deferred earlier to get the context, and passing a NULL or invalid image pointer in is a bug in the caller. --- flip.im | 3 --- 1 file changed, 3 deletions(-) diff --git a/flip.im b/flip.im index d286b91f..dfb97af9 100644 --- a/flip.im +++ b/flip.im @@ -28,9 +28,6 @@ i_flipxy(i_img *im, int direction) { im_log((aIMCTX, 1, "i_flipxy(im %p, direction %d)\n", im, direction )); - if (!im) - return 0; - switch (direction) { case XAXIS: /* Horizontal flip */ flip_h(im); -- 2.39.5