[sysprof/wip/chergert/control-fd] contro-fd: fix branch check



commit f4690396f7e0139ff473a5073fbf1f819964826a
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 11 17:01:27 2020 -0800

    contro-fd: fix branch check

 src/libsysprof/sysprof-control-source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof/sysprof-control-source.c b/src/libsysprof/sysprof-control-source.c
index 89a7ac9..190e69b 100644
--- a/src/libsysprof/sysprof-control-source.c
+++ b/src/libsysprof/sysprof-control-source.c
@@ -286,7 +286,7 @@ sysprof_control_source_supplement (SysprofSource        *source,
         {
           SysprofCaptureReader *worker = sysprof_capture_reader_new_from_fd (fd, NULL);
 
-          if (reader != NULL)
+          if (worker != NULL)
             {
               sysprof_capture_writer_cat (self->writer, worker, NULL);
               sysprof_capture_reader_unref (worker);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]