From 83e368fbc4e75f46c5b7af8b5077362b692f84e0 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Sun, 14 Jun 2015 02:19:34 +0200 Subject: [PATCH] Initialize all the things. --- src/modules/welcome/checker/partman_devices.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/welcome/checker/partman_devices.c b/src/modules/welcome/checker/partman_devices.c index c07eef460..d417f3c0f 100644 --- a/src/modules/welcome/checker/partman_devices.c +++ b/src/modules/welcome/checker/partman_devices.c @@ -44,8 +44,8 @@ static int is_cdrom(const char *path) { - int fd; - int ret; + int fd = -1; + int ret = -1; fd = open(path, O_RDONLY | O_NONBLOCK); if (fd >= 0)