From: John Darrington Date: Sun, 7 Feb 2021 09:01:14 +0000 (+0100) Subject: src/libpspp/zip-reader.c (probe_magic): Fix inappropriate return value. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11169f874096275562c7120e2ff3f3c6966ff1af;p=pspp src/libpspp/zip-reader.c (probe_magic): Fix inappropriate return value. Found by cppcheck. --- diff --git a/src/libpspp/zip-reader.c b/src/libpspp/zip-reader.c index b28ac75f8b..d33e5f930e 100644 --- a/src/libpspp/zip-reader.c +++ b/src/libpspp/zip-reader.c @@ -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)