From 5b5043bc15030278fdacf99c253a9cddaa9b136c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 20 Nov 2017 11:11:22 +0100 Subject: [PATCH] src/utils_ovs.c: Assign variable only once. CID: 179233 --- src/utils_ovs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_ovs.c b/src/utils_ovs.c index ae82253b..e3f5caad 100644 --- a/src/utils_ovs.c +++ b/src/utils_ovs.c @@ -1003,7 +1003,7 @@ ovs_db_t *ovs_db_init(const char *node, const char *service, return NULL; /* allocate db data & fill it */ - ovs_db_t *pdb = pdb = calloc(1, sizeof(*pdb)); + ovs_db_t *pdb = calloc(1, sizeof(*pdb)); if (pdb == NULL) return NULL; -- 2.11.0