mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: allow NULL only when n_counters == 0
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user