Explorar o código

Fix the type of the return

false as implicitly converted to NULL
Frank Meerkoetter %!s(int64=6) %!d(string=hai) anos
pai
achega
ef485d8bc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/historydata/ua_historydatabackend_memory.c

+ 1 - 1
plugins/historydata/ua_historydatabackend_memory.c

@@ -65,7 +65,7 @@ getNewNodeIdContext_backend_memory(UA_MemoryStoreContext* context,
         ctx->dataStore = (UA_NodeIdStoreContextItem_backend_memory*)UA_realloc(ctx->dataStore,  (newStoreSize * sizeof(UA_NodeIdStoreContextItem_backend_memory)));
         if (!ctx->dataStore) {
             ctx->storeSize = 0;
-            return false;
+            return NULL;
         }
         ctx->storeSize = newStoreSize;
     }