From 11169f874096275562c7120e2ff3f3c6966ff1af Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 7 Feb 2021 10:01:14 +0100 Subject: [PATCH] src/libpspp/zip-reader.c (probe_magic): Fix inappropriate return value. Found by cppcheck. --- src/libpspp/zip-reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2