Adds a small check for out of index possibility
Adds a small check for out of index possibility

strlen might return 0 if the tmp variable is 0 length so we might try to
reach tmp[0 -1] which makes a fatal error.

csimsek/pgsql-fio