fix an array index
This commit is contained in:
parent
636f741d88
commit
b959bcb5c7
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define g_check_stringmap_absent(table, key) do { \
|
#define g_check_stringmap_absent(table, key) do { \
|
||||||
bool end = (key[strlen(key)-2] == '$'); \
|
bool end = (key[strlen(key)-1] == '$'); \
|
||||||
if(h_stringmap_present(table, (uint8_t *)key, strlen(key), end)) { \
|
if(h_stringmap_present(table, (uint8_t *)key, strlen(key), end)) { \
|
||||||
g_test_message("Check failed: \"%s\" shouldn't have been in map, but was", key); \
|
g_test_message("Check failed: \"%s\" shouldn't have been in map, but was", key); \
|
||||||
g_test_fail(); \
|
g_test_fail(); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue