lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] dereferenced NULL Pointer


From: K.J. Mansley
Subject: Re: [lwip-users] dereferenced NULL Pointer
Date: 29 Jul 2004 10:38:49 +0100

On Thu, 2004-07-29 at 10:03, Andreas Becker wrote:
> Hi all,

> In my opinion it is better to ask if "msg" is NULL and then just use another 
> debug_statement like:
> 
> if (msg != NULL)
> {
>   LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_fetch: mbox %p msg %p\n", (void *)mbox,   
>   *msg));
> }
> else
> {
>   LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_fetch: mbox %p msg %p\n", (void *)mbox, 
>   msg));
> }

In fact, the following statement was a test of msg, so I've moved it
down into that "if" block.

Should now be fixed in CVS HEAD.

Thanks

Kieran






reply via email to

[Prev in Thread] Current Thread [Next in Thread]