1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests: fix allocation of test_ptr_1_hashtable_dyn in hdata tests

This commit is contained in:
Sébastien Helleu
2021-11-07 18:13:03 +01:00
parent 12043622e6
commit 4c9e7ed09e
+2 -2
View File
@@ -459,7 +459,7 @@ TEST_GROUP(CoreHdataWithList)
hashtable_set (item->test_ptr_2_hashtable[1],
"key1.2", "value1.2");
item->test_ptr_1_hashtable_dyn = (struct t_hashtable **)malloc (
1 * sizeof (item->test_ptr_2_hashtable[0]));
2 * sizeof (item->test_ptr_1_hashtable_dyn[0]));
item->test_ptr_1_hashtable_dyn[0] = hashtable_new (
8,
WEECHAT_HASHTABLE_STRING,
@@ -607,7 +607,7 @@ TEST_GROUP(CoreHdataWithList)
hashtable_set (item->test_ptr_2_hashtable[1],
"key2.2", "value2.2");
item->test_ptr_1_hashtable_dyn = (struct t_hashtable **)malloc (
1 * sizeof (item->test_ptr_2_hashtable[0]));
2 * sizeof (item->test_ptr_1_hashtable_dyn[0]));
item->test_ptr_1_hashtable_dyn[0] = hashtable_new (
8,
WEECHAT_HASHTABLE_STRING,