From 487bf29673f13f96f85673ffcafbabfb2da29ee1 Mon Sep 17 00:00:00 2001 From: Ryan Plauche Date: Sun, 28 Jun 2020 22:01:40 -0500 Subject: [PATCH] Fixing possible fclose on null pointer --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 491c40d..ff1fb5d 100644 --- a/pigpio.c +++ b/pigpio.c @@ -13733,8 +13733,8 @@ unsigned gpioHardwareRevision(void) rev = ntohl(tmp); rev &= 0xFFFFFF; /* mask out warranty bit */ } + fclose(filp); } - fclose(filp); } piCores = 0;