Changeset a649e73f in mainline


Ignore:
Timestamp:
2010-10-24T22:12:21Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4fbf7fd, cc8d91a
Parents:
279b80c
Message:

Do not use size before it is initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/packet/generic/packet_server.c

    r279b80c ra649e73f  
    318318                return EINVAL;
    319319
    320         if (size != packet->length)
    321                 return ENOMEM;
    322 
    323320        if (!async_share_in_receive(&callid, &size)) {
    324321                ipc_answer_0(callid, EINVAL);
    325322                return EINVAL;
     323        }
     324
     325        if (size != packet->length) {
     326                ipc_answer_0(callid, ENOMEM);
     327                return ENOMEM;
    326328        }
    327329       
Note: See TracChangeset for help on using the changeset viewer.