aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/daemon/daemon.c')
-rw-r--r--src/plugins/daemon/daemon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/daemon/daemon.c b/src/plugins/daemon/daemon.c
index c23a087e..4004f3f4 100644
--- a/src/plugins/daemon/daemon.c
+++ b/src/plugins/daemon/daemon.c
@@ -54,14 +54,12 @@ static void * updateAppModelSafe(void * unused) {
54 model = gtk_list_store_new(2, 54 model = gtk_list_store_new(2,
55 G_TYPE_STRING, 55 G_TYPE_STRING,
56 G_TYPE_STRING); 56 G_TYPE_STRING);
57 apps = NULL;
57 sock = client_connection_create(ectx, cfg); 58 sock = client_connection_create(ectx, cfg);
58 if (sock == NULL) { 59 if (sock != NULL)
59 apps = STRDUP("");
60 } else {
61 apps = getConfigurationOptionValue(sock, 60 apps = getConfigurationOptionValue(sock,
62 "GNUNETD", 61 "GNUNETD",
63 "APPLICATIONS"); 62 "APPLICATIONS");
64 }
65 if (apps != NULL) { 63 if (apps != NULL) {
66 next = apps; 64 next = apps;
67 do { 65 do {