rengolin/HPCC-Platform — comment on commit f6c19d2e655d96e0310fe0596ccd711a53dd0503
File: dali/base/dadfs.cpp line 2100
By ghalliday:

This isn't correct - the result of query is not linked, so can't assigned to an owned object. (Did it really pass the regression tests!)

You could say

Linked<...> cur = &query();

It would then be more normal to say

return LINK(cur);
or (more efficiently)
return cur.getClear();

Alternatively you could say
return OLINK(query());
or
return *LINK(&query());

(O is meant to stand for OBJECT)