Commit 39e360e5 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix indentation.

parent 95c35bb2
......@@ -31,17 +31,16 @@ char* gribCopyString(grib_handle* gribHandle, const char* key)
char* result = NULL;
size_t length;
#ifdef HAVE_GRIB_GET_LENGTH
if(!grib_get_length(gribHandle, key, &length))
if (!grib_get_length(gribHandle, key, &length))
{
result = (char *) Malloc(length);
if(!grib_get_string(gribHandle, key, result, &length))
result = (char *) Realloc(result, length);
else
{
result = (char *)Malloc(length);
if (!grib_get_string(gribHandle, key, result, &length))
result = (char *) Realloc(result, length);
else
{
Free(result);
result = NULL;
}
}
}
#else
length = 1024; /* there's an implementation limit
......
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