summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-05-04 14:48:38 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-07 12:09:35 +0200
commitde939ca64b3d17ee786f3fc621314fce1746334e (patch)
tree97ec0f334229bd05e73d68b3b0160332b5a95d40 /src/bindings
parent5801bc07f501cba34d0345bca2dae39d7628e175 (diff)
cxx: Initialize _list and _node with nullptr
Fixes CID 1409576 pointing that _node was unitialized. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11770
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/cxx/eina_cxx/eina_ptrlist.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/cxx/eina_cxx/eina_ptrlist.hh b/src/bindings/cxx/eina_cxx/eina_ptrlist.hh
index 2c2416c06e..f0ba2454f9 100644
--- a/src/bindings/cxx/eina_cxx/eina_ptrlist.hh
+++ b/src/bindings/cxx/eina_cxx/eina_ptrlist.hh
@@ -53,7 +53,7 @@ struct _ptr_list_iterator_base
53 typedef std::ptrdiff_t difference_type; 53 typedef std::ptrdiff_t difference_type;
54 typedef std::bidirectional_iterator_tag iterator_category; 54 typedef std::bidirectional_iterator_tag iterator_category;
55 55
56 _ptr_list_iterator_base() : _list(0) {} 56 _ptr_list_iterator_base() : _list(nullptr), _node(nullptr) {}
57 _ptr_list_iterator_base(Eina_List* list, Eina_List* node) 57 _ptr_list_iterator_base(Eina_List* list, Eina_List* node)
58 : _list(list), _node(node) 58 : _list(list), _node(node)
59 {} 59 {}