Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0062194d
Unverified
Commit
0062194d
authored
Apr 02, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 02, 2020
Browse files
Merge pull request #6654 from oranagra/fix_module_info_warning
fix possible warning on incomplete struct init
parents
10b626b3
173cca54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
0062194d
...
@@ -5978,7 +5978,7 @@ sds modulesCollectInfo(sds info, const char *section, int for_crash_report, int
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment