Added check whether malloc(0) returns NULL or not.
2 files changed