src/utils_ovs.c: Assign variable only once.
[collectd.git] / src / utils_ovs.c
index ae82253..e3f5caa 100644 (file)
@@ -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;