FFvaluestore: fix UB reported by clang

This commit is contained in:
李通洲
2023-02-21 10:21:07 +08:00
parent 92b1788825
commit cc1260ee3c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#include <string.h>
typedef char KeyType[33]; //32 byte key + \0
typedef char KeyType[32]; //31 byte key + \0
void ffValuestoreInit(FFvaluestore* vs, uint32_t valueSize)
{
+1 -1
View File
@@ -10,7 +10,7 @@ typedef FFlist FFvaluestore;
void ffValuestoreInit(FFvaluestore* vs, uint32_t valueSize);
FF_C_NODISCARD void* ffValuestoreGet(FFvaluestore* vs, const char* key);
void* ffValuestoreSet(FFvaluestore* vs, const char* key, bool* created); //created may be NULL
FF_C_NODISCARD void* ffValuestoreSet(FFvaluestore* vs, const char* key, bool* created); //created may be NULL
void ffValuestoreDestroy(FFvaluestore* vs);
#endif