summaryrefslogtreecommitdiff
path: root/backends/cryptodev.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cryptodev.c')
-rw-r--r--backends/cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cryptodev.c b/backends/cryptodev.c
index bf52476166..2b105e433c 100644
--- a/backends/cryptodev.c
+++ b/backends/cryptodev.c
@@ -39,7 +39,7 @@ cryptodev_backend_new_client(const char *model,
{
CryptoDevBackendClient *cc;
- cc = g_malloc0(sizeof(CryptoDevBackendClient));
+ cc = g_new0(CryptoDevBackendClient, 1);
cc->model = g_strdup(model);
if (name) {
cc->name = g_strdup(name);