From 269000b40b6fe1bf72b72bdaab02c20b09cafe93 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Mon, 24 Sep 2012 16:44:27 -0400 Subject: fixed logical error in height/width check --- fly-tools/background/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fly-tools') diff --git a/fly-tools/background/main.c b/fly-tools/background/main.c index 696f9b9..18fcc29 100644 --- a/fly-tools/background/main.c +++ b/fly-tools/background/main.c @@ -92,10 +92,11 @@ int main(int argc, char **argv ) { int height = MagickGetImageHeight(first_wand); int width = MagickGetImageWidth(first_wand); - if (height == 0 | width == 0) { + if (height == 0 || width == 0) { puts("height/or width is 0!"); exit(1); } + first_wand = DestroyMagickWand(first_wand); printf("height: %d width:%d \n", height, width); @@ -212,5 +213,6 @@ int main(int argc, char **argv ) { DestroyMagickWand(output_wand); MagickWandTerminus(); + return 0; } -- cgit v1.2.3