Changeset b5f716b in mainline for uspace/srv/net/dhcp


Ignore:
Timestamp:
2014-04-18T11:32:09Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5792d6e
Parents:
80f6be9
Message:

Unbreak optimized-for-size builds (fix maybe-uninitialized)

When possible, converted the maybe-unitialized (in all cases, false alarms)
variables to an assignment with assertion testing that reasonable value
was added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dhcp/transport.c

    r80f6be9 rb5f716b  
    172172        dhcp_transport_t *dt = (dhcp_transport_t *)arg;
    173173        void *msg;
    174         size_t size;
     174        size_t size = (size_t) -1;
    175175        int rc;
    176176
     
    179179                if (rc != EOK)
    180180                        break;
     181
     182                assert(size != (size_t) -1);
    181183
    182184                dt->recv_cb(dt->cb_arg, msg, size);
Note: See TracChangeset for help on using the changeset viewer.