Quellcode durchsuchen

Fix the type of the return

false as implicitly converted to NULL
Frank Meerkoetter vor 6 Jahren
Ursprung
Commit
ef485d8bc3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
     }