From 3bebbe066d06ee276c063c897805ebdc8b2825a4 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 30 Oct 2012 17:09:14 +0000 Subject: geometry: remove useless NULL check Remove useless checks, the code would crash all over of widw/widh were NULL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35292 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/geometry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvo/geometry.c b/libvo/geometry.c index 4bc08f811d..941528aea9 100644 --- a/libvo/geometry.c +++ b/libvo/geometry.c @@ -90,8 +90,8 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh) "height: %i, xoff: %s%i, yoff: %s%i, xper: %i, yper: %i\n", width, height, xsign, xoff, ysign, yoff, xper, yper); - if (width > 0 && widw) *widw = width; - if (height > 0 && widh) *widh = height; + if (width > 0) *widw = width; + if (height > 0) *widh = height; if(xoff != INT_MIN && xsign[0] == '-') xoff = scrw - *widw - xoff; if(yoff != INT_MIN && ysign[0] == '-') yoff = scrh - *widh - yoff; -- cgit v1.2.3