Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
78a3f4bf
Commit
78a3f4bf
authored
Nov 26, 2014
by
Thomas Jahns
🤸
Browse files
Use xmalloc where appropriate.
parent
b129b14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/varscan.c
View file @
78a3f4bf
...
...
@@ -1028,7 +1028,7 @@ void varDefTable(int varID, int tableID)
void
varDefEnsembleInfo
(
int
varID
,
int
ens_idx
,
int
ens_count
,
int
forecast_type
)
{
if
(
vartable
[
varID
].
ensdata
==
NULL
)
vartable
[
varID
].
ensdata
=
(
ensinfo_t
*
)
malloc
(
sizeof
(
ensinfo_t
)
);
vartable
[
varID
].
ensdata
=
(
ensinfo_t
*
)
x
malloc
(
sizeof
(
ensinfo_t
)
);
vartable
[
varID
].
ensdata
->
ens_index
=
ens_idx
;
vartable
[
varID
].
ensdata
->
ens_count
=
ens_count
;
...
...
Write
Preview
Markdown
is supported
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