[sysprof/wip/chergert/control-fd] libsysprof: check for valid GError
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/control-fd] libsysprof: check for valid GError
- Date: Tue, 11 Feb 2020 23:14:17 +0000 (UTC)
commit a973ded05ccd2f9fe547ffccd5b6a902cc7e3662
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 11 15:10:54 2020 -0800
libsysprof: check for valid GError
src/libsysprof/sysprof-control-source.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof/sysprof-control-source.c b/src/libsysprof/sysprof-control-source.c
index edf1696..603e45b 100644
--- a/src/libsysprof/sysprof-control-source.c
+++ b/src/libsysprof/sysprof-control-source.c
@@ -141,7 +141,8 @@ on_bus_closed_cb (GDBusConnection *connection,
const GError *error,
SysprofControlSource *self)
{
- g_printerr ("Bus connection closed: %s\n", error->message);
+ if (error != NULL)
+ g_warning ("Bus connection prematurely closed: %s\n", error->message);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]