From a023ba6e0c89fd398213fc869b0f71ae31fb4cf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 25 Feb 2017 12:47:07 +0000 Subject: [PATCH] W32: Fix a possible control flow error Make sure we eitehr return or set ftype to something. --- src/util/disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/disk.c b/src/util/disk.c index 305607594..d3d5d87dc 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -1840,6 +1840,8 @@ GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh) { if (0 != ResetEvent (osfh)) ftype = GNUNET_DISK_HANLDE_TYPE_EVENT; + else + return NULL; } else return NULL; -- 2.25.1