From 8dd9910c0cce121b7120cd542fa1557da7eb2282 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 18 Nov 2019 14:20:49 -0600 Subject: Qt UI: Handle the other type of NULL SSID string --- ui/qt5/netsimplewifipage.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index c5a9eb4..bec143c 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -192,6 +192,9 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) { /* Don't bother with empty SSIDs. */ if(ssid.empty()) continue; + /* since this *is* destructive, we don't run it on our actual SSID */ + if(QString::fromStdString(ssid) + .remove("\\x00", Qt::CaseSensitive).size() == 0) continue; QIcon icon; if(network.signal_level < -90) { -- cgit v1.2.3-70-g09d2