mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Initialize potentially uninitialized variable
If `cvtoptions.pathkind` is true, then `canon` will not be initialized and it is accessed at line 279.
This commit is contained in:
parent
b2097a77aa
commit
f89dcb9dfa
@ -191,7 +191,7 @@ main(int argc, char** argv)
|
||||
{
|
||||
int c;
|
||||
char* cvtpath = NULL;
|
||||
char* inpath, *canon;
|
||||
char* inpath, *canon = NULL;
|
||||
|
||||
memset((void*)&cvtoptions,0,sizeof(cvtoptions));
|
||||
cvtoptions.drive = 'c';
|
||||
|
Loading…
Reference in New Issue
Block a user