check for a 0 size first, then check for a NULL pointer
check for a 0 size first, then check for a NULL pointer

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc