Changeset 9d20ea8 in mainline


Ignore:
Timestamp:
2008-11-05T22:50:38Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86e3d62
Parents:
4f1c0b4
Message:

Need to initialize the lcl variable via a call to fat_cluster_walk().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.c

    r4f1c0b4 r9d20ea8  
    361361        uint8_t fatno;
    362362
    363         if (fat_clusters_get(bs, nodep->idx->dev_handle, nodep->firstc) == 0) {
     363        if (fat_cluster_walk(bs, nodep->idx->dev_handle, nodep->firstc, &lcl,
     364            NULL, (uint16_t) -1) == 0) {
    364365                /* No clusters allocated to the node yet. */
    365366                nodep->firstc = host2uint16_t_le(mcl);
Note: See TracChangeset for help on using the changeset viewer.