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:
Toomas Soome 2018-04-07 14:40:09 +00:00
parent 0745a23ddc
commit 213f235f49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332170
2 changed files with 3 additions and 1 deletions

View file

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

View file

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