assert expressions should not have any noticeable sideffects or otherwise
be important for the program flow operation. If not unexpected results is
seen from compiling with -DNODEBUG
assert(checklist->auth_user_request != NULL);
auth_user_request = checklist->auth_user_request;
- assert(authenticateValidateUser(auth_user_request));
+ int validated = authenticateValidateUser(auth_user_request);
+ assert(validated);
auth_user_request->start(LookupDone, checklist);
}
// subscribe to receive reply body
if (new_rep->body_pipe != NULL) {
adaptedBodySource = new_rep->body_pipe;
- assert(adaptedBodySource->setConsumerIfNotLate(this));
+ int consumer_ok = adaptedBodySource->setConsumerIfNotLate(this);
+ assert(consumer_ok);
}
clientStreamNode *node = (clientStreamNode *)client_stream.tail->prev->data;