src/libpspp/zip-reader.c (probe_magic): Fix inappropriate return value.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 Feb 2021 09:01:14 +0000 (10:01 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 Feb 2021 09:01:14 +0000 (10:01 +0100)
Found by cppcheck.

src/libpspp/zip-reader.c

index b28ac75f8ba4e93c846f3227ab32e283f9013cd3..d33e5f930e289b4e86674548816f2834b3cfa376 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2011, 2013, 2014 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2013, 2014, 2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -577,7 +577,7 @@ probe_magic (FILE *fp, uint32_t magic, off_t start, off_t stop, off_t *off)
 
   if (0 > fseeko (fp, start, SEEK_SET))
     {
-      return -1;
+      return false;
     }
 
   for (i = 0; i < 4 ; ++i)