зеркало из https://github.com/mozilla/pjs.git
Uninitialized variables
This commit is contained in:
Родитель
8091fca848
Коммит
327257fb03
|
@ -307,7 +307,7 @@ NS_IMETHODIMP FileImpl::Seek(PRSeekWhence whence, PRInt32 offset)
|
||||||
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
|
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
|
||||||
PRInt32 available = PR_Available(mFileDesc);
|
PRInt32 available = PR_Available(mFileDesc);
|
||||||
PRInt32 fileSize = position + available;
|
PRInt32 fileSize = position + available;
|
||||||
PRInt32 newPosition;
|
PRInt32 newPosition = 0;
|
||||||
switch (whence)
|
switch (whence)
|
||||||
{
|
{
|
||||||
case PR_SEEK_CUR: newPosition = position + offset; break;
|
case PR_SEEK_CUR: newPosition = position + offset; break;
|
||||||
|
|
|
@ -111,8 +111,8 @@ __get_buf(HTAB *hashp, uint32 addr, BUFHEAD *prev_bp, int newpage)
|
||||||
{
|
{
|
||||||
register BUFHEAD *bp;
|
register BUFHEAD *bp;
|
||||||
register uint32 is_disk_mask;
|
register uint32 is_disk_mask;
|
||||||
register int is_disk, segment_ndx;
|
register int is_disk, segment_ndx = 0;
|
||||||
SEGMENT segp;
|
SEGMENT segp = 0;
|
||||||
|
|
||||||
is_disk = 0;
|
is_disk = 0;
|
||||||
is_disk_mask = 0;
|
is_disk_mask = 0;
|
||||||
|
|
|
@ -307,7 +307,7 @@ NS_IMETHODIMP FileImpl::Seek(PRSeekWhence whence, PRInt32 offset)
|
||||||
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
|
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
|
||||||
PRInt32 available = PR_Available(mFileDesc);
|
PRInt32 available = PR_Available(mFileDesc);
|
||||||
PRInt32 fileSize = position + available;
|
PRInt32 fileSize = position + available;
|
||||||
PRInt32 newPosition;
|
PRInt32 newPosition = 0;
|
||||||
switch (whence)
|
switch (whence)
|
||||||
{
|
{
|
||||||
case PR_SEEK_CUR: newPosition = position + offset; break;
|
case PR_SEEK_CUR: newPosition = position + offset; break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче