Ignore:
Timestamp:
Mar 14, 2017, 7:26:40 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3efe749
Parents:
ccd4a7f
git-author:
Sebastian Huber <sebastian.huber@…> (03/14/17 07:26:40)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/16/17 14:33:57)
Message:

dosfs: Simplify fat_file_open()

Update #2929.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat_file.c

    rccd4a7f r063eb574  
    111111    rc = _hash_search(fs_info, fs_info->rhash, key, key, &lfat_fd);
    112112
    113     lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
     113    lfat_fd = (*fat_fd) = (fat_file_fd_t*)calloc(1, sizeof(fat_file_fd_t));
    114114    if ( lfat_fd == NULL )
    115115        rtems_set_errno_and_return_minus_one( ENOMEM );
    116 
    117     memset(lfat_fd, 0, sizeof(fat_file_fd_t));
    118116
    119117    lfat_fd->links_num = 1;
Note: See TracChangeset for help on using the changeset viewer.