changeset 35198:8528f4b70dff

Remove useless checks, the code would crash all over of widw/widh were NULL.
author reimar
date Tue, 30 Oct 2012 17:09:14 +0000
parents 996cf322a88d
children 9b921155e030
files libvo/geometry.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/geometry.c	Tue Oct 30 16:58:50 2012 +0000
+++ b/libvo/geometry.c	Tue Oct 30 17:09:14 2012 +0000
@@ -90,8 +90,8 @@
 		  "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;