Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
1cc87b3f
Commit
1cc87b3f
authored
Jul 22, 2015
by
Thomas Jahns
🤸
Browse files
Minor fix for gribCopyString.
* Correct return value when grib_get_length is available. * Fix coding style.
parent
719c3678
Changes
2
Show whitespace changes
Inline
Side-by-side
src/gribapi_utilities.c
View file @
1cc87b3f
...
...
@@ -60,13 +60,14 @@ char* gribCopyString(grib_handle* gribHandle, const char* key)
break
;
}
if
(
!
rc
)
{
result
=
xrealloc
(
result
,
length
);
return
result
;
}
else
{
free
(
result
);
result
=
NULL
;
}
#endif
return
NULL
;
return
result
;
}
//A simple wrapper for grib_get_string() for the usecase that the result is only compared to a given constant string.
...
...
src/table.h
View file @
1cc87b3f
...
...
@@ -1424,3 +1424,12 @@ tableDefault(void)
}
#endif
/* _TABLE_H */
/*
* Local Variables:
* c-file-style: "Java"
* c-basic-offset: 2
* indent-tabs-mode: nil
* show-trailing-whitespace: t
* require-trailing-newline: t
* End:
*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment