Explorar el Código

fix cppcheck complain about an unused value

Julius Pfrommer hace 8 años
padre
commit
ab1724da29
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/ua_nodestore.c

+ 1 - 1
src/server/ua_nodestore.c

@@ -177,7 +177,7 @@ expand(UA_NodeStore *ns) {
 
 UA_NodeStore *
 UA_NodeStore_new(void) {
-    UA_NodeStore *ns = ns = UA_malloc(sizeof(UA_NodeStore));
+    UA_NodeStore *ns = UA_malloc(sizeof(UA_NodeStore));
     if(!ns)
         return NULL;
     ns->sizePrimeIndex = higher_prime_index(UA_NODESTORE_MINSIZE);