aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-10-26 05:45:27 -0400
committerThanos Makatos <thanos.makatos@nutanix.com>2020-10-26 05:45:27 -0400
commit9589ccfcc60b2bf27142961b541fce0faede45a3 (patch)
treec4bbdb589bb06471d03557e436623545daa82b0b /lib
parent8698ba8a748d38788bec9e535c0b6d595d6590aa (diff)
downloadlibvfio-user-9589ccfcc60b2bf27142961b541fce0faede45a3.zip
libvfio-user-9589ccfcc60b2bf27142961b541fce0faede45a3.tar.gz
libvfio-user-9589ccfcc60b2bf27142961b541fce0faede45a3.tar.bz2
don't use uninitilized variable
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libmuser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c
index 8a31b9c..547a318 100644
--- a/lib/libmuser.c
+++ b/lib/libmuser.c
@@ -1990,7 +1990,7 @@ process_request(lm_ctx_t *lm_ctx)
struct vfio_region_info *dev_reg_info = NULL;
void *data = NULL;
bool free_data = false;
- int len;
+ int len = 0;
assert(lm_ctx != NULL);