Skip to content
Snippets Groups Projects
Commit 60a0aec5 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Instead of called function switch arguments instead.

parent d677659b
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,8 @@ void gribContainersDelete(stream_t * streamptr);
#ifdef HAVE_LIBGRIBAPI
static inline void *gribHandleNew(int editionNumber)
{
void *gh = (editionNumber == 1) ?
(void *) grib_handle_new_from_samples(NULL, "GRIB1") :
(void *) grib_handle_new_from_samples(NULL, "GRIB2");
void *gh =
(void *)grib_handle_new_from_samples(NULL, (editionNumber == 1) ? "GRIB1" : "GRIB2");
if ( gh == NULL ) Error("grib_handle_new_from_samples failed!");
return gh;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment