[sysprof] libsysprof-capture: reset reader before catting into dest
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-capture: reset reader before catting into dest
- Date: Wed, 31 Jul 2019 20:09:04 +0000 (UTC)
commit fc013fe99f379af69f73217dfb400ff32c6d3842
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 31 13:07:41 2019 -0700
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 2b2694a..6dc2fce 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]