summaryrefslogtreecommitdiffstats
path: root/src/polypcore/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypcore/random.c')
-rw-r--r--src/polypcore/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polypcore/random.c b/src/polypcore/random.c
index 4bfce975..d7a37b0b 100644
--- a/src/polypcore/random.c
+++ b/src/polypcore/random.c
@@ -48,7 +48,7 @@ static int random_proper(void *ret_data, size_t length) {
#else /* OS_IS_WIN32 */
- int fd, ret;
+ int fd, ret = -1;
ssize_t r = 0;
const char **device;