mirror of
https://github.com/sddm/sddm.git
synced 2024-11-23 18:13:26 +08:00
Avoid bogus "Malformed entry" warnings if X-SDDM-Env not present or empty
Just skip empty parts.
This commit is contained in:
parent
3ee57e9983
commit
9896dea103
@ -202,7 +202,7 @@ namespace SDDM {
|
||||
{
|
||||
QProcessEnvironment env;
|
||||
|
||||
const QVector<QStringRef> entryList = list.splitRef(QLatin1Char(','));
|
||||
const QVector<QStringRef> entryList = list.splitRef(QLatin1Char(','), Qt::SkipEmptyParts);
|
||||
for (const auto &entry: entryList) {
|
||||
int midPoint = entry.indexOf(QLatin1Char('='));
|
||||
if (midPoint < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user