diff options
Diffstat (limited to 'fly-tools')
-rw-r--r-- | fly-tools/background/main.c | 4 |
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; } |