Skip to content

Commit 240d96d

Browse files
committed
fix issue where allocation guard was inverse
1 parent b47e917 commit 240d96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_igraph/graphobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7846,12 +7846,12 @@ PyObject *igraphmodule_Graph_simple_cycles(
78467846
return NULL;
78477847

78487848
igraph_vector_int_list_t vertices;
7849-
if (!igraph_vector_int_list_init(&vertices, 0)) {
7849+
if (igraph_vector_int_list_init(&vertices, 0)) {
78507850
igraphmodule_handle_igraph_error();
78517851
return NULL;
78527852
}
78537853
igraph_vector_int_list_t edges;
7854-
if (!igraph_vector_int_list_init(&edges, 0)) {
7854+
if (igraph_vector_int_list_init(&edges, 0)) {
78557855
igraphmodule_handle_igraph_error();
78567856
return NULL;
78577857
}

0 commit comments

Comments
 (0)