build fix: ds_link should be compared with 0, not NULL