Fix query values

FossilOrigin-Name: 65398eea30625deaed24e6ae750c497bf64bf7b89b267ae48bedd851c793de98
This commit is contained in:
me@ow.nekobit.net 2022-05-04 01:31:51 +00:00
parent 657b648938
commit 6e029b5ec4

View file

@ -56,7 +56,7 @@ char* read_query_data(struct get_values* query)
if (!(info.key && info.val)) break;
for (size_t i = 0; i < (sizeof(refs)/sizeof(refs[0])); ++i)
if (strcmp(info.key, refs[i].key) == 0)
refs[i].func(info.val, NULL, info.key);
refs[i].func(info.val, NULL, refs[i].val);
}
while (g_query_read);
}