hsearch: fix null pointer arithmetic UB

htab->__tab->entries pointer may be 0 so delay using it in arithmetics.
this did not cause any known issue other than with ubsan instrumentation.
1 file changed