Re: [CODE] do_dig modifications for OasisOLC

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 01/08/01


George Greer wrote:
>
> On Mon, 8 Jan 2001, Ron Martin wrote:
>
> You should check for !buf || !buf2 before doing the conversion.
>
> >        if (!buf)
<snip>
> >        else if (!buf2)
<snip>
> if (!buf || !buf2)

(!buf || !buf2) will always return false since they are both statically
allocated and will never be a NULL pointer, I think you mean...

(!*buf || !*buf2)

Which will do what you want.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST