> On Oct 6, 2017, at 1:32 PM, Kent Williams <kwilli...@leepfrog.com> wrote: > > Instead of > > aMatchinfo = (unsigned int *)sqlite3_value_blob(apVal[0]); > > Something like: > > if((aMatchinfo = (unsigned int *)sqlite3_value_blob(apVal[0])) == 0) { > sqlite3_result_error(pCtx, > "invalid matchinfo blob passed to function rank()", -1); > }
That’s not necessary: if aMatchinfo is NULL, then nMatchInfo will be 0, which will be detected as an error. —Jens _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users