On Wed, 10 Mar 2004 13:34:32 +0300
Paul P Komkoff Jr <[EMAIL PROTECTED]> wrote:

> Replying to Yury Mikhienko:
> > Hi again!
> > 
> > What about my question?
> > Any suggestions?
> > 
> > I need help :(((
> 
> 
> can you instead of yelling and screaming provide us backtrace of yours
> situation?
> 
> if it dumps core when crashes load it into gdb and do a bt full
> ?
> 

I solve the problem by add the following lines into octstr_compare function (add NULL 
check):

    seems_valid(ostr1);
    seems_valid(ostr2);

+    if ((ostr1 == NULL) && (ostr2 == NULL))
+            return 0;
+            
+    if ((ostr1 != NULL) && (ostr2 == NULL))
+            return 1;
+                        
+    if ((ostr1 == NULL) && (ostr2 != NULL))
+            return -1;

It very dirty way, but fast and effective in my case.

-- 
 
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188

Reply via email to