Fix check for data length of 0

Remove cast to (char *) when checking int == 0.