Ignore:
Timestamp:
11/26/18 17:32:17 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
0a474e3
Parents:
f6f3ae5
Message:

More assertion cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/message_queue.c

    ree6e802 r88b9798  
    4343void libtrace_message_queue_init(libtrace_message_queue_t *mq, size_t message_len)
    4444{
    45         assert(message_len);
     45        /*assert(message_len);*/
     46        if (!message_len) {
     47                fprintf(stderr, "Message length cannot be 0 in libtrace_message_queue_init()\n");
     48                return;
     49        }
    4650        ASSERT_RET(pipe(mq->pipefd), != -1);
    4751        mq->message_count = 0;
     
    6973{
    7074        int ret;
    71         assert(mq->message_len);
     75        /*assert(mq->message_len);*/
    7276        ASSERT_RET(write(mq->pipefd[1], message, mq->message_len), == (int) mq->message_len);
    7377        // Update after we've written
Note: See TracChangeset for help on using the changeset viewer.