mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
dfile.c:NC_open has a couple of
uninitialized local variables. Fix was to initialize them.
This commit is contained in:
parent
51c0cc0c46
commit
a35d3c04d8
@ -1593,8 +1593,8 @@ NC_open(const char *path, int cmode,
|
||||
/* Need two pieces of information for now */
|
||||
int model = 0;
|
||||
int isurl = 0;
|
||||
int version;
|
||||
enum FileType filetype;
|
||||
int version = 0;
|
||||
enum FileType filetype = FT_UNKNOWN;
|
||||
|
||||
if(!nc_initialized) {
|
||||
stat = NC_initialize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user