From fc013fe99f379af69f73217dfb400ff32c6d3842 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 31 Jul 2019 13:07:41 -0700 Subject: [PATCH] libsysprof-capture: reset reader before catting into dest --- src/libsysprof-capture/sysprof-capture-writer-cat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsysprof-capture/sysprof-capture-writer-cat.c b/src/libsysprof-capture/sysprof-capture-writer-cat.c index 2b2694a9..6dc2fce5 100644 --- a/src/libsysprof-capture/sysprof-capture-writer-cat.c +++ b/src/libsysprof-capture/sysprof-capture-writer-cat.c @@ -159,6 +159,8 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self, g_return_val_if_fail (self != NULL, FALSE); g_return_val_if_fail (reader != NULL, FALSE); + sysprof_capture_reader_reset (reader); + translate_table_clear (tables, TRANSLATE_CTR); translate_table_clear (tables, TRANSLATE_ADDR);