diff options
author | bfriesen <bfriesen> | 2013-12-17 14:45:12 +0000 |
---|---|---|
committer | bfriesen <bfriesen> | 2013-12-17 14:45:12 +0000 |
commit | b690ffd02007cc5c5d85bb896686158ed19b6f36 (patch) | |
tree | 033024ab79a5041b2893f588e1acd953cf268553 /test/long_tag.c | |
parent | 0fededa07d3cae91761145d228edd6e0ab6ef064 (diff) | |
download | libtiff-b690ffd02007cc5c5d85bb896686158ed19b6f36.tar.gz |
Check return status from TIFFWriteScanline() correctly in test programs.branch-3-9
Diffstat (limited to 'test/long_tag.c')
-rw-r--r-- | test/long_tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/long_tag.c b/test/long_tag.c index 256bc8e9..3338f22e 100644 --- a/test/long_tag.c +++ b/test/long_tag.c @@ -1,4 +1,4 @@ -/* $Id: long_tag.c,v 1.3.2.1 2010-06-08 18:50:43 bfriesen Exp $ */ +/* $Id: long_tag.c,v 1.3.2.2 2013-12-17 14:45:12 bfriesen Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> @@ -109,7 +109,7 @@ main(int argc, char **argv) } /* Write dummy pixel data. */ - if (!TIFFWriteScanline(tif, buf, 0, 0) < 0) { + if (TIFFWriteScanline(tif, buf, 0, 0) == -1) { fprintf (stderr, "Can't write image data.\n"); goto failure; } |