#43 new
Tommi Rantala

asyncns.c: assignment in assert()

Reported by Tommi Rantala | March 2nd, 2009 @ 02:16 PM

In asyncns.c there are at least the following two assignments in assertions, probably should be equality check instead.


void asyncns_setuserdata(asyncns_t *asyncns, asyncns_query_t *q, void *userdata) {
    assert(q);
    assert(asyncns);
    assert(q->asyncns = asyncns);
 
    q->userdata = userdata;
}
 
void* asyncns_getuserdata(asyncns_t *asyncns, asyncns_query_t *q) {
    assert(q);
    assert(asyncns);
    assert(q->asyncns = asyncns);
 
    return q->userdata;
}

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Libloudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol. It's designed to be easy to get started with and yet extensible to let you do anything the Jabber protocol allows.

People watching this ticket

You can update this ticket by sending an email to from your email client. (help)