Don't call memset() before checking that the ptr is not NULL.
1 file changed