Skip to content
GitLab
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
6847c8a9
Commit
6847c8a9
authored
Aug 05, 2015
by
Thomas Jahns
🤸
Browse files
Fix warnings about unitialized data.
* gcc does not realize the ordering.
parent
94ef619c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
6847c8a9
...
...
@@ -2,6 +2,7 @@
# include "config.h"
#endif
#include
<limits.h>
#include
<stdio.h>
#include
"dmemory.h"
...
...
@@ -1036,7 +1037,7 @@ int gribapiScanTimestep2(stream_t * streamptr)
unsigned
char
*
gribbuffer
=
NULL
;
size_t
buffersize
=
0
;
int
fileID
;
DateTime
datetime0
;
DateTime
datetime0
=
{
LONG_MIN
,
LONG_MIN
}
;
// int gridID;
int
recID
;
// int warn_numavg = TRUE;
...
...
@@ -1295,7 +1296,7 @@ int gribapiScanTimestep(stream_t * streamptr)
int
nrecs_scanned
=
streamptr
->
tsteps
[
0
].
nallrecs
+
streamptr
->
tsteps
[
1
].
nrecs
*
(
tsID
-
1
);
//Only used for debug output.
int
rindex
=
0
;
off_t
recpos
=
0
;
DateTime
datetime0
;
DateTime
datetime0
=
{
LONG_MIN
,
LONG_MIN
}
;
grib_handle
*
gh
=
NULL
;
char
varname
[
256
];
while
(
TRUE
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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