From 67c8529a4fe6b9e10569cf02b18dbb83766989b0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 3 Dec 2008 00:22:27 +0100 Subject: [PATCH] Optimize SSID character replacement --- plugins/wifi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 87ad8cc..494f53b 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -182,9 +182,9 @@ static void scan_result(struct connman_element *parent, for (i = 0; i < strlen(temp); i++) { if (temp[i] == ' ' || temp[i] == '.' || temp[i] == '-') temp[i] = '_'; - if (temp[i] == '(' || temp[i] == ')') + else if (temp[i] == '(' || temp[i] == ')') temp[i] = '_'; - if (g_ascii_isprint(temp[i]) == FALSE) + else if (g_ascii_isprint(temp[i]) == FALSE) temp[i] = '_'; temp[i] = g_ascii_tolower(temp[i]); } -- 1.7.9.5