svn commit: r332170 - head/stand/libsa
Toomas Soome
tsoome at FreeBSD.org
Sat Apr 7 14:40:10 UTC 2018
Author: tsoome
Date: Sat Apr 7 14:40:09 2018
New Revision: 332170
URL: https://svnweb.freebsd.org/changeset/base/332170
Log:
libsa: cd9660: warning: 'lenskip' may be used uninitialized in this function
We better provide value for lenskip in both instances.
Modified:
head/stand/libsa/cd9660.c
head/stand/libsa/cd9660read.c
Modified: head/stand/libsa/cd9660.c
==============================================================================
--- head/stand/libsa/cd9660.c Sat Apr 7 14:38:58 2018 (r332169)
+++ head/stand/libsa/cd9660.c Sat Apr 7 14:40:09 2018 (r332170)
@@ -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
Modified: head/stand/libsa/cd9660read.c
==============================================================================
--- head/stand/libsa/cd9660read.c Sat Apr 7 14:38:58 2018 (r332169)
+++ head/stand/libsa/cd9660read.c Sat Apr 7 14:40:09 2018 (r332170)
@@ -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);
More information about the svn-src-all
mailing list