This is simply for consistency with other structs that we create, and
to ensure that all fields in the struct start in a known state.
---
server/backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/backend.c b/server/backend.c
index ef7df67cd..b6c445af7 100644
--- a/server/backend.c
+++ b/server/backend.c
@@ -249,7 +249,7 @@ backend_open (struct backend *b, int readonly, const char
*exportname,
using_tls = conn->using_tls;
}
- c = malloc (sizeof *c);
+ c = calloc (1, sizeof *c);
if (c == NULL) {
nbdkit_error ("malloc: %m");
return NULL;
--
2.42.0