Skip to content

Commit

Permalink
geo_print.c: fix wrong test in DefaultRead() that caused erroenous er…
Browse files Browse the repository at this point in the history
…ror message to be emitted.

git-svn-id: https://svn.osgeo.org/metacrs/geotiff/trunk@2830 4e78687f-474d-0410-85f9-8d5e500ac6b2
  • Loading branch information
rouault committed Dec 11, 2018
1 parent cbc914a commit 0dba341
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libgeotiff/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2018-12-11 Even Rouault <even dot rouault at spatialys dot com>

* geo_print.c: fix wrong test in DefaultRead() that caused erroenous
error message to be emitted.
* Prepare for 1.4.3RC2

2018-12-07 Even Rouault <even dot rouault at spatialys dot com>

* Prepare for 1.4.3
Expand Down
2 changes: 1 addition & 1 deletion libgeotiff/geo_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static int DefaultRead(char *string, void *aux)
int num_read;
/* 1023 comes from char message[1024]; in GTIFFImport */
num_read = fscanf((FILE *)aux, "%1023[^\n]\n", string);
if (num_read != 0) {
if (num_read == 0) {
fprintf(stderr, "geo_print.c DefaultRead failed to read anything.\n");
}
return 1;
Expand Down

0 comments on commit 0dba341

Please sign in to comment.