From: john s. <sk...@us...> - 2013-07-05 05:55:08
|
On 05/07/2013, at 2:06 PM, Doug Baskins wrote: > John: > > If I understand your code, "v" is a pointer to a so-called null string and C > does not allow it to be a NULL (char * 0). Therefore I would expect > _tmp65803 to be returned as a pointer to the Value (0) associated with the string "". > It would be a NULL pointer if an error occurred. Yes, sorry. In fact I was out by "one level of indirection" :) The NULL I saw was actually correctly initialised fresh slot in the array. Judy was working fine as usual. Just FYI the bug was in my code generation. The data value for this array is a list of stuff. I basically did: insert "string" return slot *slot = Prepend new-data to get "string" if NULL then Empty-List else list-at-slot; So the "get" always succeeded because it was done after the insert, but it fetch a NULL instead of a list pointer. -- john skaller sk...@us... http://felix-lang.org |