diff options
author | Toomas Soome <tsoome@me.com> | 2021-03-30 00:01:06 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2021-04-01 19:46:42 +0300 |
commit | 4ba84af54d7e87f645088b6bb6f9baac08e77373 (patch) | |
tree | 0fee0b86e61dd72c100bea319f009ab5b39efe2d | |
parent | cf988e4abd3e7fd3815aa43c51aff413cc05ad45 (diff) | |
download | illumos-joyent-4ba84af54d7e87f645088b6bb6f9baac08e77373.tar.gz |
13680 libfruraw: 'hash_obj' may be used uninitialized
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/lib/libfru/libfruraw/raw_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libfru/libfruraw/raw_access.c b/usr/src/lib/libfru/libfruraw/raw_access.c index 7c1d2077e1..3ffca614da 100644 --- a/usr/src/lib/libfru/libfruraw/raw_access.c +++ b/usr/src/lib/libfru/libfruraw/raw_access.c @@ -205,7 +205,7 @@ create_packet_hash_object(void) static hash_obj_t * get_container_hash_object(int object_type, handle_t handle) { - hash_obj_t *hash_obj; + hash_obj_t *hash_obj = NULL; switch (object_type) { case CONTAINER_TYPE: |