1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-07 19:13:20 +00:00

Fixed warnings

This commit is contained in:
Bryan Roe
2020-01-29 09:29:21 -08:00
parent 726fdf2bd6
commit 1d9908f944
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ void ILibSimpleDataStore_Cached(ILibSimpleDataStore dataStore, char* key, int ke
if (root->cacheTable == NULL) { root->cacheTable = ILibHashtable_Create(); }
ILibSimpleDataStore_CacheEntry *entry = (ILibSimpleDataStore_CacheEntry*)ILibMemory_Allocate(sizeof(ILibSimpleDataStore_CacheEntry) + valueLen, 0, NULL, NULL);
entry->valueLength = valueLen;
memcpy_s(entry->value, valueLen, value, valueLen);
if (valueLen > 0) { memcpy_s(entry->value, valueLen, value, valueLen); }
ILibHashtable_Put(root->cacheTable, NULL, key, keyLen, entry);
}