Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ini.c

    r5ebff60 rea39049  
    2828ini_t *ini_open(char *file)
    2929{
    30         int fd;
     30        int fd = -1;
    3131        ini_t *ini = NULL;
    3232        struct stat fi;
    3333
    34         if ((fd = open(file, O_RDONLY)) != -1 &&
     34        if (file && (fd = open(file, O_RDONLY)) != -1 &&
    3535            fstat(fd, &fi) == 0 &&
    3636            fi.st_size <= 16384 &&
Note: See TracChangeset for help on using the changeset viewer.