summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-04-02 16:32:20 +0200
committerGitHub <noreply@github.com>2020-04-02 16:32:20 +0200
commit0062194d74537f67b80d9d0843bceadffe981dbb (patch)
treeb09a348c5bbd42011f0edb67ef077c8df44ff08c
parent10b626b3d5aa733688eca3e9f977ced66fd9f9b5 (diff)
parent173cca54135230ba2a8d180574a56baee67304ea (diff)
downloadredis-0062194d74537f67b80d9d0843bceadffe981dbb.tar.gz
Merge pull request #6654 from oranagra/fix_module_info_warning
fix possible warning on incomplete struct init
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index 16d24152e..64f274e78 100644
--- a/src/module.c
+++ b/src/module.c
@@ -5978,7 +5978,7 @@ sds modulesCollectInfo(sds info, const char *section, int for_crash_report, int
struct RedisModule *module = dictGetVal(de);
if (!module->info_cb)
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);
/* Implicitly end dicts (no way to handle errors, and we must add the newline). */
if (info_ctx.in_dict_field)