summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-07-18 22:08:52 +0200
committerBenoit Dejean <bdejean@gmail.com>2015-07-18 22:08:52 +0200
commit14818230859f11f12d0568f5c171413949414191 (patch)
tree1f54c7716f873f2f78e4ca507a44c84e9cd99a74
parent4e57a6222de806d0980dd027d976689e9b09bc7d (diff)
downloadlibgtop-14818230859f11f12d0568f5c171413949414191.tar.gz
Use the server parameter, not the global/default one.
-rw-r--r--lib/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.c b/lib/init.c
index 6ad2ee4f..2b215fd9 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -209,7 +209,7 @@ glibtop_init_r (glibtop **server_ptr, unsigned long features, unsigned flags)
/* Open server, but only if not already opened. */
if ((server->flags & _GLIBTOP_INIT_STATE_OPEN) == 0)
- glibtop_open_l (glibtop_global_server, "glibtop",
+ glibtop_open_l (server, "glibtop",
features, flags);
return server;