Ticket #277: filesys.C.diff

File filesys.C.diff, 359 bytes (added by Joses, 17 years ago)

added NULL check for dir_open()

  • filesys.C

    old new  
    106106#elif defined(_WIN32)
    107107    if (!is_dir(p)) return NULL;
    108108    dirp = (DIR_DESC*) calloc(sizeof(DIR_DESC), 1);
     109    if (!dirp) return NULL;
    109110    dirp->first = true;
    110111    safe_strcpy(dirp->path, p);
    111112    strcat(dirp->path, "\\*");