Changeset ccbf93f in mainline


Ignore:
Timestamp:
2017-10-19T20:30:01Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0464967
Parents:
b1efe3e
Message:

Do not use uninitialized variables

Return value in extent.c was not initialized.
The smp_hdr_size was, but GCC 7.1.0 complained it wasn't.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/extent.c

    rb1efe3e rccbf93f  
    375375    uint32_t *fblock)
    376376{
    377         int rc;
     377        int rc = EOK;
    378378        /* Compute bound defined by i-node size */
    379379        uint64_t inode_size =
  • uspace/lib/trackmod/xm.c

    rb1efe3e rccbf93f  
    289289        size_t instr_size;
    290290        size_t smp_size;
    291         size_t smp_hdr_size;
     291        size_t smp_hdr_size = 0; /* GCC false alarm on uninitialized */
    292292        ssize_t nread;
    293293        uint8_t ltype;
Note: See TracChangeset for help on using the changeset viewer.