projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5682fd2
)
W32: Fix a possible control flow error
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Sat, 25 Feb 2017 12:47:07 +0000
(12:47 +0000)
committer
Руслан Ижбулатов
<lrn1986@gmail.com>
Sat, 25 Feb 2017 21:02:29 +0000
(21:02 +0000)
Make sure we eitehr return or set ftype to something.
src/util/disk.c
patch
|
blob
|
history
diff --git
a/src/util/disk.c
b/src/util/disk.c
index 305607594386632cccdb7ff5940c4196a48f1d3a..d3d5d87dc76f609578c5f187e4e1c8d4dd555634 100644
(file)
--- 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;