Skip to content

Commit 1bfe6fd

Browse files
committed
(rasqal_new_rowsource_from_handler): Init default size to 0
(rasqal_rowsource_add_variable): Remove workaround needed for above.
1 parent b53ce8d commit 1bfe6fd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rasqal_rowsource.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ rasqal_new_rowsource_from_handler(rasqal_world* world,
8888
rowsource->handler = handler;
8989
rowsource->flags = flags;
9090

91-
rowsource->size = -1;
91+
rowsource->size = 0;
9292

9393
rowsource->generate_group = 0;
9494

@@ -191,9 +191,6 @@ rasqal_rowsource_add_variable(rasqal_rowsource *rowsource, rasqal_variable* v)
191191
if(raptor_sequence_push(rowsource->variables_sequence, v))
192192
return -1;
193193

194-
if(rowsource->size < 0)
195-
rowsource->size = 0;
196-
197194
offset = rowsource->size;
198195

199196
rowsource->size++;

0 commit comments

Comments
 (0)