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:
Greg Sjaardema 2022-06-07 14:28:01 -06:00 committed by GitHub
parent b2097a77aa
commit f89dcb9dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';