Skip to content

Commit 0dba341

Browse files
committed
geo_print.c: fix wrong test in DefaultRead() that caused erroenous error message to be emitted.
git-svn-id: https://svn.osgeo.org/metacrs/geotiff/trunk@2830 4e78687f-474d-0410-85f9-8d5e500ac6b2
1 parent cbc914a commit 0dba341

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libgeotiff/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2018-12-11 Even Rouault <even dot rouault at spatialys dot com>
2+
3+
* geo_print.c: fix wrong test in DefaultRead() that caused erroenous
4+
error message to be emitted.
5+
* Prepare for 1.4.3RC2
6+
17
2018-12-07 Even Rouault <even dot rouault at spatialys dot com>
28

39
* Prepare for 1.4.3

libgeotiff/geo_print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static int DefaultRead(char *string, void *aux)
510510
int num_read;
511511
/* 1023 comes from char message[1024]; in GTIFFImport */
512512
num_read = fscanf((FILE *)aux, "%1023[^\n]\n", string);
513-
if (num_read != 0) {
513+
if (num_read == 0) {
514514
fprintf(stderr, "geo_print.c DefaultRead failed to read anything.\n");
515515
}
516516
return 1;

0 commit comments

Comments
 (0)