Meh, no (null) it's empty if it's empty.
Store tmp to tokv in for loop, so we can free it if something fails.
Make filter to pointer.