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
83af3d5e
Commit
83af3d5e
authored
Sep 18, 2015
by
Uwe Schulzweida
Browse files
replace xmalloc() by Malloc()
parent
e48e6e80
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/file.c
View file @
83af3d5e
...
...
@@ -307,7 +307,7 @@ bfile_t *file_new_entry(void)
{
bfile_t
*
fileptr
;
fileptr
=
(
bfile_t
*
)
xm
alloc
(
sizeof
(
bfile_t
));
fileptr
=
(
bfile_t
*
)
M
alloc
(
sizeof
(
bfile_t
));
if
(
fileptr
)
file_init_entry
(
fileptr
);
...
...
src/stream_cdf.c
View file @
83af3d5e
...
...
@@ -5194,7 +5194,7 @@ int isHybridSigmaPressureCoordinate(int ncid, int ncvarid, ncvar_t *ncvars, cons
printf("%d %g %g %g %g\n", i, abuf[i*2], abuf[i*2+1], bbuf[i*2], bbuf[i*2+1]);
*/
size_t
vctsize
=
(
dimlen
+
1
)
*
2
;
double
*
vct
=
(
double
*
)
xm
alloc
(
vctsize
*
sizeof
(
double
));
double
*
vct
=
(
double
*
)
M
alloc
(
vctsize
*
sizeof
(
double
));
for
(
size_t
i
=
0
;
i
<
dimlen
;
++
i
)
{
vct
[
i
]
=
abuf
[
i
*
2
];
...
...
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