Explorar o código

fix cppcheck complain about an unused value

Julius Pfrommer %!s(int64=8) %!d(string=hai) anos
pai
achega
ab1724da29
Modificáronse 1 ficheiros con 1 adicións e 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);