Fixed warning on OS X ({NULL} => memset).