ubik-uninitialized-var-20081018

LICENSE MIT

'pass' must be initialized.  do so.
This commit is contained in:
Jeffrey Altman 2008-10-18 16:24:35 +00:00
parent f69137625f
commit 7e8c41d53f
2 changed files with 1 additions and 1 deletions

View File

@ -605,6 +605,7 @@ urecovery_Interact(void *dummy)
}
#endif
pass = 0;
while (length > 0) {
tlen = (length > sizeof(tbuffer) ? sizeof(tbuffer) : length);
#ifndef AFS_PTHREAD_ENV

View File

@ -560,7 +560,6 @@ SDISK_SendFile(rxcall, file, length, avers)
close(fd);
goto failed;
}
#else
pass = 0;
#endif
memcpy(&ubik_dbase->version, &tversion, sizeof(struct ubik_version));