[sysprof] tests: initialize allocated value to 0
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] tests: initialize allocated value to 0
- Date: Mon, 24 Feb 2020 23:28:19 +0000 (UTC)
commit d34e277a6a7f1231e34610ca2d7797513ede5ac9
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 24 15:27:58 2020 -0800
tests: initialize allocated value to 0
src/tests/allocs-within-mark.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/tests/allocs-within-mark.c b/src/tests/allocs-within-mark.c
index 240687a..10d1228 100644
--- a/src/tests/allocs-within-mark.c
+++ b/src/tests/allocs-within-mark.c
@@ -113,6 +113,7 @@ allocs_within_mark (SysprofCaptureReader *reader,
iv = &g_array_index (intervals, Interval, intervals->len - 1);
iv->begin = ev->frame.time;
iv->end = ev->frame.time + ev->duration;
+ iv->allocated = 0;
}
else if (!sysprof_capture_reader_skip (reader))
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]