summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2018-11-21 17:14:45 +0100
committerGitHub <noreply@github.com>2018-11-21 17:14:45 +0100
commite3ae78a829f345b8fc4e259c26584baf67bdfab7 (patch)
tree549b9572cebf9adfbf12f94a77d27bc8820db3e1 /lib
parentMerge pull request #3339 from opensourcerouting/bugfix/isis-flooding-issues (diff)
parentisisd lib ospfd pbrd python: fix empty init (diff)
downloadfrr-e3ae78a829f345b8fc4e259c26584baf67bdfab7.tar.xz
frr-e3ae78a829f345b8fc4e259c26584baf67bdfab7.zip
Merge pull request #3368 from pacovn/static_analysis__ISO_C_empty_initializer
isisd lib ospfd pbrd python: fix empty init
Diffstat (limited to 'lib')
-rw-r--r--lib/command_py.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/command_py.c b/lib/command_py.c
index 58b798266..ca0c8be79 100644
--- a/lib/command_py.c
+++ b/lib/command_py.c
@@ -92,7 +92,7 @@ static PyMemberDef members_graph_node[] = {
member(deprecated, T_BOOL), member(hidden, T_BOOL),
member(text, T_STRING), member(desc, T_STRING),
member(min, T_LONGLONG), member(max, T_LONGLONG),
- member(varname, T_STRING), {},
+ member(varname, T_STRING), {0},
};
#undef member
@@ -137,7 +137,7 @@ static PyObject *graph_node_join(PyObject *self, PyObject *args)
static PyMethodDef methods_graph_node[] = {
{"next", graph_node_next, METH_NOARGS, "outbound graph edge list"},
{"join", graph_node_join, METH_NOARGS, "outbound join node"},
- {}};
+ {0}};
static void graph_node_wrap_free(void *arg)
{
@@ -228,7 +228,7 @@ static PyObject *graph_to_pyobj(struct wrap_graph *wgraph,
}
static PyMemberDef members_graph[] = {
member(definition, T_STRING),
- {},
+ {0},
};
#undef member
@@ -242,7 +242,7 @@ static PyObject *graph_first(PyObject *self, PyObject *args)
static PyMethodDef methods_graph[] = {
{"first", graph_first, METH_NOARGS, "first graph node"},
- {}};
+ {0}};
static PyObject *graph_parse(PyTypeObject *type, PyObject *args,
PyObject *kwds);