libsysprof: fix use of {0} initializers for older GCC

Older GCC versions complain about this so we might as well squash it.
This commit is contained in:
Christian Hergert
2020-02-20 11:04:11 -08:00
parent 0cb4bb61ac
commit 348a1ef110
3 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ static Diskstat *
register_counters_by_name (SysprofDiskstatSource *self,
const gchar *name)
{
SysprofCaptureCounter ctr[2] = {0};
SysprofCaptureCounter ctr[2] = {{{0}}};
Diskstat ds = {0};
g_assert (SYSPROF_IS_DISKSTAT_SOURCE (self));