diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-26 09:23:25 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-01-29 23:48:15 +0200 |
commit | c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3 (patch) | |
tree | 4906910bfbdbc344a6c48f8760f09be68e9ac7c4 /usr/src/uts/common/os/devpolicy.c | |
parent | 7093fd72e0be9a255aa4b1ed00a701f80699ac7d (diff) | |
download | illumos-gate-c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3.tar.gz |
12172 genunix: variable may be used uninitialized
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/os/devpolicy.c')
-rw-r--r-- | usr/src/uts/common/os/devpolicy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/os/devpolicy.c b/usr/src/uts/common/os/devpolicy.c index 7acc3cef86..be40866f42 100644 --- a/usr/src/uts/common/os/devpolicy.c +++ b/usr/src/uts/common/os/devpolicy.c @@ -417,12 +417,12 @@ devpolicy_load(int nitems, size_t sz, devplcysys_t *uitmp) int lastlen; int lastwild; -#ifdef lint - /* Lint can't figure out that the "i == 1" test protects all */ + /* gcc 9 can't figure out that the "i == 1" test protects all */ lastlen = 0; lastwild = 0; lastmajor = 0; -#endif + newpolicy = NULL; + /* * The application must agree with the kernel on the size of each * item; it must not exceed the maximum number and must be |