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/exacct.c | |
parent | 7093fd72e0be9a255aa4b1ed00a701f80699ac7d (diff) | |
download | illumos-joyent-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/exacct.c')
-rw-r--r-- | usr/src/uts/common/os/exacct.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/exacct.c b/usr/src/uts/common/os/exacct.c index 9babfd1d0f..c9214cec84 100644 --- a/usr/src/uts/common/os/exacct.c +++ b/usr/src/uts/common/os/exacct.c @@ -656,6 +656,8 @@ exacct_assemble_task_usage(ac_info_t *ac_task, task_t *tk, case EW_INTERVAL: record_type = EXD_GROUP_TASK_INTERVAL; break; + default: + return (0); } /* @@ -1045,6 +1047,9 @@ exacct_assemble_proc_usage(ac_info_t *ac_proc, proc_usage_t *pu, case EW_PARTIAL: record_type = EXD_GROUP_PROC_PARTIAL; break; + default: + record_type = EXD_NONE; + break; } proc_record = exacct_assemble_proc_record(pu, mask, record_type); @@ -1372,6 +1377,8 @@ exacct_assemble_net_usage(ac_info_t *ac_net, void *ninfo, case EX_NET_FLSTAT_REC: record_type = EXD_GROUP_NET_FLOW_STATS; break; + default: + return (0); } net_desc = exacct_assemble_net_record(ninfo, mask, record_type, what); |