Corrected a potential null dereference caused by passing '0' to calloc.
Corrected a potential null dereference caused by passing '0' to calloc.

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c