Re: Duping Bugfix

From: Luis Pedro Passos Carvalho (lpcarvalho@SONAE.PT)
Date: 01/16/98


-----Original Message-----
From: Drago's <creed@I-55.COM>
To: CIRCLE@POST.QUEENSU.CA <CIRCLE@POST.QUEENSU.CA>
Date: Friday, January 16, 1998 6:12 PM
Subject: Re:  Duping Bugfix

[snip]

>I tried this.  It crashes mine on if(GET_NAME(dt->character) &&
>!str_cmp(GET_NAME(dt->character), newname)).  But simply doing a check
like:


Maybe your compiler doesn't optimize the evaluation of if-conditions. Some
compilers
don't stop at the first false of an AND.

Regards,

Luis Carvalho


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST