diff options
author | John Levon <john.levon@nutanix.com> | 2020-11-19 09:37:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 09:37:28 +0000 |
commit | f54581b9d4837e92cf644b48505e5419d8df72cb (patch) | |
tree | 6bef3a27f37ecc7422e291028f085e61740644aa /lib/tran_sock.c | |
parent | 58b89f9e0f7cd7847606fb22d2c0b9a38735cd62 (diff) | |
download | libvfio-user-f54581b9d4837e92cf644b48505e5419d8df72cb.zip libvfio-user-f54581b9d4837e92cf644b48505e5419d8df72cb.tar.gz libvfio-user-f54581b9d4837e92cf644b48505e5419d8df72cb.tar.bz2 |
enable assert() in release builds (#98)
Diffstat (limited to 'lib/tran_sock.c')
-rw-r--r-- | lib/tran_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tran_sock.c b/lib/tran_sock.c index 856d296..ef811e8 100644 --- a/lib/tran_sock.c +++ b/lib/tran_sock.c @@ -356,9 +356,9 @@ int recv_version(lm_ctx_t *lm_ctx, int sock, uint16_t *msg_idp, struct vfio_user_version **versionp) { - struct vfio_user_version *cversion; + struct vfio_user_version *cversion = NULL; struct vfio_user_header hdr; - size_t vlen; + size_t vlen = 0; int ret; *versionp = NULL; |