Initialize all the things.
This commit is contained in:
parent
aeac85d176
commit
83e368fbc4
@ -44,8 +44,8 @@
|
|||||||
static int
|
static int
|
||||||
is_cdrom(const char *path)
|
is_cdrom(const char *path)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd = -1;
|
||||||
int ret;
|
int ret = -1;
|
||||||
|
|
||||||
fd = open(path, O_RDONLY | O_NONBLOCK);
|
fd = open(path, O_RDONLY | O_NONBLOCK);
|
||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user