diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-09-12 04:51:52 -0400 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2019-09-20 14:45:21 +0100 |
commit | 6cc50a833daa367b8ce0504de8ffb1bc93c47c94 (patch) | |
tree | c2db8c720b820e185977af07b37b33d0d1a570ca /lib | |
parent | 27a1fbe3b4732343c80f25a34e232dc9af17599d (diff) | |
download | libvfio-user-6cc50a833daa367b8ce0504de8ffb1bc93c47c94.zip libvfio-user-6cc50a833daa367b8ce0504de8ffb1bc93c47c94.tar.gz libvfio-user-6cc50a833daa367b8ce0504de8ffb1bc93c47c94.tar.bz2 |
don't unnecessarily initialize global variables to 0
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python_bindings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python_bindings.c b/lib/python_bindings.c index 253d3f9..f6b2e4a 100644 --- a/lib/python_bindings.c +++ b/lib/python_bindings.c @@ -35,7 +35,7 @@ #include "muser.h" -static PyObject *region_access_callbacks[LM_DEV_NUM_REGS] = { 0 }; +static PyObject *region_access_callbacks[LM_DEV_NUM_REGS]; static int handle_read(char *dst, PyObject *result, int count) @@ -131,7 +131,7 @@ struct _region_info { PyObject *fn; }; -static const struct _region_info _0_ri = { 0 }; +static const struct _region_info _0_ri; static PyObject *log_fn = NULL; static lm_log_lvl_t log_lvl = LM_ERR; |