Skip to content

Commit 98ce8f8

Browse files
committed
fix: initialize two potentially uninitialized variables
1 parent f8b16dd commit 98ce8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_igraph/edgeseqobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ PyObject* igraphmodule_EdgeSeq_select(igraphmodule_EdgeSeqObject *self, PyObject
849849
igraph_vector_int_destroy(&v);
850850
} else {
851851
/* Iterators and everything that was not handled directly */
852-
PyObject *iter, *item2;
852+
PyObject *iter = NULL, *item2 = NULL;
853853

854854
/* Allocate stuff */
855855
if (igraph_vector_int_init(&v, 0)) {

0 commit comments

Comments
 (0)