Changeset ccbf93f in mainline for uspace/lib/trackmod/xm.c


Ignore:
Timestamp:
2017-10-19T20:30:01Z (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.