Re: bug report: crm114 'eval' throws error depending on *value* being 'eval'-ed (demo script included)

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20081007141531.GQ26719@localhost>
On Tue, Oct 07, 2008 at 08:09:16AM -0400, Bill Yerazunis wrote:
>    yep. Attached diff seems to do the trick. FWIF it passes megatest.
>    The important stuff is just the test  'if (itercount == 1)', but I've
>    augumented the trace part, and long -> int isn't important here.
> 
> The actual cause is much simpler.  "ahash" is ormally initialized to all

yes, that's what the diff addresses ... 

> The fix?  Simple.  (around crm_expr_alter line 92): initialize
> ahash[i] to -1 instead.  Unlike 0, it's quite difficult to achieve

sme effort than 'if (itercount == 1)' :)

-- 
paolo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
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.