diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-30 15:05:56 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-03-16 08:57:02 +0200 |
commit | 584b574a3b16c6772c8204ec1d1c957c56f22a87 (patch) | |
tree | c9bfd155a2c2edf14608a4ee0d1b328680cde6d8 /usr/src/common/fs/hsfs.c | |
parent | 34a4e6b53d2e6f2605fd77cda5b161201d7d0f20 (diff) | |
download | illumos-joyent-584b574a3b16c6772c8204ec1d1c957c56f22a87.tar.gz |
12174 i86pc: variable may be used uninitialized
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andrew Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/common/fs/hsfs.c')
-rw-r--r-- | usr/src/common/fs/hsfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/common/fs/hsfs.c b/usr/src/common/fs/hsfs.c index 9efe265cfa..e648d03360 100644 --- a/usr/src/common/fs/hsfs.c +++ b/usr/src/common/fs/hsfs.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Basic file system reading code for standalone I/O system. * Simulates a primitive UNIX I/O system (read(), write(), open(), etc). @@ -174,7 +172,7 @@ opendir(ino_t inode, fileid_t *filep) filep->fi_blocknum = hdbtodb(inode); if (inode != root_ino) - return (0); + return (0); if (parse_dir(filep, 0, &hsdep) > 0) { struct inode *ip; @@ -198,6 +196,7 @@ find(char *path, fileid_t *filep) char c; ino_t n; + n = 0; dprintf("find: %s\n", path); if (path == NULL || *path == '\0') return (0); |