git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9199f
)
ctdb-common: Avoid warning for potentially uninitialised pointers
author
Martin Schwenke
<martin@meltin.net>
Thu, 23 May 2019 07:51:46 +0000
(17:51 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Wed, 5 Jun 2019 10:25:50 +0000
(10:25 +0000)
s_list generates a warning, but initialise them both.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/run_event.c
patch
|
blob
|
history
diff --git
a/ctdb/common/run_event.c
b/ctdb/common/run_event.c
index 27e7ad6055e97b48fe14c193384786d63d1eba05..3682f77876807f71d7975c932728406d9c0ae737 100644
(file)
--- a/
ctdb/common/run_event.c
+++ b/
ctdb/common/run_event.c
@@
-285,8
+285,8
@@
int run_event_list(struct run_event_context *run_ctx,
TALLOC_CTX *mem_ctx,
struct run_event_script_list **output)
{
- struct event_script_list *s_list;
- struct run_event_script_list *script_list;
+ struct event_script_list *s_list
= NULL
;
+ struct run_event_script_list *script_list
= NULL
;
unsigned int i;
int ret;