Re: octstr_compare

Yury Mikhienko <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Mobicom-Kavkaz
Message-ID <[email protected]>
On Wed, 10 Mar 2004 13:38:45 +0300
Paul P Komkoff Jr <[email protected]> wrote:

> Replying to Phuah Yee Keat:
> > >What are think about the add following code into octstr.c/octstr_compare?
> > 
> > [snip]
> > >+    if ((ostr1 == NULL) && (ostr2 == NULL))
> > >+       return 0;
> > [snip]
> > 
> > returning 0 in this case will means the strings are equal, when they are 
> > not. I guess that the return value is not supposed to be used for error 
> 
> but yes, they ARE both equals NULL :)
> 
> Yury, I think that production system should not have such bandaids
> spread over it but if it actually works here (tm) - why not.
> 
> (but you are pushing problem out of sight so it will kick you from
> underneath)
> 

I ask that across the "wapbox restart (Kannel wapbox version cvs-20030917)" problem.
I need more stable code of kannel.

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.