Experimental: setting MISSING as a valid value (for now disabled)

This commit is contained in:
Shahram Najm 2022-01-20 14:40:06 +00:00
parent 2595aa43f0
commit f1e9143b59
1 changed files with 10 additions and 1 deletions

View File

@ -295,7 +295,16 @@ static int compare(grib_accessor* a, grib_accessor* b)
static int pack_string(grib_accessor* a, const char* val, size_t* len)
{
char* theEnd = NULL;
long v = strtol(val, &theEnd, 10);
long v = 0;
#if 0
/* Requires more work e.g. filter */
if (strcmp_nocase(val, "missing")==0) {
return pack_missing(a);
}
#endif
v = strtol(val, &theEnd, 10);
if (theEnd) {
grib_context_log(a->context, GRIB_LOG_ERROR, "trying to pack \"%s\" as long", val);
return GRIB_WRONG_TYPE;