libsysprof-capture: allow NULL only when n_counters == 0

This commit is contained in:
Christian Hergert
2019-06-06 17:15:10 -07:00
parent 8493ed843a
commit db33d910bb

View File

@ -1220,7 +1220,7 @@ sysprof_capture_writer_set_counters (SysprofCaptureWriter *self,
guint i;
g_assert (self != NULL);
g_assert (counters_ids != NULL);
g_assert (counters_ids != NULL || n_counters == 0);
g_assert (values != NULL || !n_counters);
if (n_counters == 0)