diff options
author | Giuseppe Di Natale <[email protected]> | 2017-04-05 13:21:10 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-04-05 13:21:10 -0700 |
commit | 6b0ecd2f2f069769218d3001998a78ed8d0a19bc (patch) | |
tree | 637f7e6923c051d5cc48d6b38c8aabea9250e091 /cmd | |
parent | 2e215fecbe97167cd5408cea19aa50b80601248c (diff) |
Fix coverity defects: CID 161264
CID 161264: Uninitialized variables (UNINIT)
In _zed_event_add_nvpair, when handling DATA_TYPE_UINT64,
we should be using i64 throughout the entire case.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Don Brady <[email protected]>
Signed-off-by: Giuseppe Di Natale <[email protected]>
Closes #5964
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zed/zed_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed_event.c b/cmd/zed/zed_event.c index aecdb5146..390235019 100644 --- a/cmd/zed/zed_event.c +++ b/cmd/zed/zed_event.c @@ -662,7 +662,7 @@ _zed_event_add_nvpair(uint64_t eid, zed_strings_t *zsp, nvpair_t *nvp) (void) snprintf(alt, sizeof (alt), "%s_str", name); _zed_event_add_var(eid, zsp, prefix, alt, "%s", - zpool_pool_state_to_name(i32)); + zpool_pool_state_to_name(i64)); } break; case DATA_TYPE_DOUBLE: |