fix: ensure variables are initialized before dereferencing
This commit is contained in:
@@ -466,7 +466,7 @@ GlobalClosure *Closure;
|
|||||||
int exitCode = EXIT_SUCCESS;
|
int exitCode = EXIT_SUCCESS;
|
||||||
|
|
||||||
void InitClosure()
|
void InitClosure()
|
||||||
{ int v1,v2,v3,dots=0;
|
{ int v1=0,v2=0,v3=0,dots=0;
|
||||||
char *v,version[strlen(VERSION)+1];
|
char *v,version[strlen(VERSION)+1];
|
||||||
|
|
||||||
Closure = g_malloc0(sizeof(GlobalClosure));
|
Closure = g_malloc0(sizeof(GlobalClosure));
|
||||||
|
|||||||
@@ -1837,7 +1837,7 @@ reread:
|
|||||||
|
|
||||||
err = CheckForMissingSector(rc->buf+i*2048, b, NULL, 0);
|
err = CheckForMissingSector(rc->buf+i*2048, b, NULL, 0);
|
||||||
if(err != SECTOR_PRESENT)
|
if(err != SECTOR_PRESENT)
|
||||||
{ int fixme;
|
{ int fixme=0;
|
||||||
ExplainMissingSector(rc->buf+i*2048, b, err, SOURCE_MEDIUM, &fixme);
|
ExplainMissingSector(rc->buf+i*2048, b, err, SOURCE_MEDIUM, &fixme);
|
||||||
|
|
||||||
if(rc->map) /* Avoids confusion in the ecc stage */
|
if(rc->map) /* Avoids confusion in the ecc stage */
|
||||||
|
|||||||
Reference in New Issue
Block a user