aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-09-24 16:44:27 -0400
committermutantturkey <mutantturke@gmail.com>2012-09-24 16:44:27 -0400
commit269000b40b6fe1bf72b72bdaab02c20b09cafe93 (patch)
tree83a51669b648b8ccf555512d89d28f7cc65d50dc
parent189eb7af124ecc1b1f9666781f566b8b01678af3 (diff)
fixed logical error in height/width check
-rw-r--r--fly-tools/background/main.c4
1 files changed, 3 insertions, 1 deletions
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;
}