hds: use NULL instead of 0 for pointers