Commit fd697e51 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fixup for r3555

* Correct return value when grib_get_length is available.
parent ba300299
......@@ -32,7 +32,7 @@ char* gribCopyString(grib_handle* gribHandle, const char* key)
if(!grib_get_length(gribHandle, key, &length))
char* result = xmalloc(length);
result = xmalloc(length);
if(!grib_get_string(gribHandle, key, result, &length))
result = xrealloc(result, length);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment