Re: octstr_compare

Paul P Komkoff Jr <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Department of Fish & Wildlife
Message-ID <[email protected]>
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)

-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head
signature.asc (application/pgp-signature, 155 B)
-----BEGIN PGP SIGNATURE-----

iD8DBQFATvA1yMW8naS07KQRAiYJAJ4meButHlUHQKdb6OSnZ9UAUgiLhwCeJxW4
YQZDmuLl35ra+KuubpNhSi4=
=vOO8
-----END PGP SIGNATURE-----
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.