mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
libsa: cd9660: warning: 'lenskip' may be used uninitialized in this function
We better provide value for lenskip in both instances.
This commit is contained in:
parent
0745a23ddc
commit
213f235f49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332170
|
@ -309,6 +309,7 @@ cd9660_open(const char *path, struct open_file *f)
|
|||
|
||||
first = 1;
|
||||
use_rrip = 0;
|
||||
lenskip = 0;
|
||||
while (*path) {
|
||||
bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length);
|
||||
dsize = isonum_733(rec.size);
|
||||
|
@ -343,7 +344,7 @@ cd9660_open(const char *path, struct open_file *f)
|
|||
use_rrip = rrip_check(f, dp, &lenskip);
|
||||
|
||||
if (dirmatch(f, path, dp, use_rrip,
|
||||
first ? 0 : lenskip)) {
|
||||
first ? 0 : lenskip)) {
|
||||
first = 0;
|
||||
break;
|
||||
} else
|
||||
|
|
|
@ -247,6 +247,7 @@ cd9660_lookup(const char *path)
|
|||
|
||||
first = 1;
|
||||
use_rrip = 0;
|
||||
lenskip = 0;
|
||||
while (*path) {
|
||||
bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length);
|
||||
dsize = isonum_733(rec.size);
|
||||
|
|
Loading…
Reference in a new issue