diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-01-10 00:15:31 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-01-10 00:15:31 +0100 |
commit | 0410641d01d3598c627620cff4e5d2b386b51703 (patch) | |
tree | 3445aa9ca55ff4ed386dbba9283075f5d7370e4b | |
parent | a6dfb61cc396b06c7a52bbba4391c553f426109d (diff) | |
download | connman-gnome-0410641d01d3598c627620cff4e5d2b386b51703.tar.gz |
Treat empty secrets as if no secrets are available
-rw-r--r-- | common/test-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/test-client.c b/common/test-client.c index 90690e9..b5c8bd1 100644 --- a/common/test-client.c +++ b/common/test-client.c @@ -131,7 +131,7 @@ static void network_to_text(GtkTreeViewColumn *column, GtkCellRenderer *cell, if (essid != NULL) markup = g_strdup_printf("%s\n<small>PSK: %s\n</small>", - essid, psk ? "Yes" : "No"); + essid, psk && *psk != '\0' ? "Yes" : "No"); else markup = g_strdup_printf("\n<small>\n</small>"); g_object_set(cell, "markup", markup, NULL); |