mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 10:32:14 +00:00
Merge pull request #6654 from oranagra/fix_module_info_warning
fix possible warning on incomplete struct init
This commit is contained in:
commit
0062194d74
@ -5978,7 +5978,7 @@ sds modulesCollectInfo(sds info, const char *section, int for_crash_report, int
|
|||||||
struct RedisModule *module = dictGetVal(de);
|
struct RedisModule *module = dictGetVal(de);
|
||||||
if (!module->info_cb)
|
if (!module->info_cb)
|
||||||
continue;
|
continue;
|
||||||
RedisModuleInfoCtx info_ctx = {module, section, info, sections, 0};
|
RedisModuleInfoCtx info_ctx = {module, section, info, sections, 0, 0};
|
||||||
module->info_cb(&info_ctx, for_crash_report);
|
module->info_cb(&info_ctx, for_crash_report);
|
||||||
/* Implicitly end dicts (no way to handle errors, and we must add the newline). */
|
/* Implicitly end dicts (no way to handle errors, and we must add the newline). */
|
||||||
if (info_ctx.in_dict_field)
|
if (info_ctx.in_dict_field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user