I generally assert in the malloc(0) case as it is not clear what the caller intended. (i.e., does the caller expect to have a NULL pointer or not? - Danilo