writer: increment the next counter id, not the return value

This commit is contained in:
Christian Hergert
2016-04-15 04:49:02 -07:00
parent 253b387323
commit 48420b0c87

View File

@ -1101,7 +1101,7 @@ sp_capture_writer_request_counter (SpCaptureWriter *self,
g_assert (self != NULL);
ret = self->next_counter_id;
ret += n_counters;
self->next_counter_id += n_counters;
return ret;
}