Skip to content

Commit 2dce310

Browse files
committed
Fix the "almost always true" condition
1 parent b8ffd53 commit 2dce310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iconhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ IconHandler::IconHandler(
326326

327327
// optimization: check if we actually have an interesting path before
328328
// entering the slower loop below.
329-
if (!fname.starts_with("/usr/share/icons/") || (!m_extraPrefix.empty() && !fname.starts_with(extraIconsPath)))
329+
if (!fname.starts_with("/usr/share/icons/") && (!m_extraPrefix.empty() && !fname.starts_with(extraIconsPath)))
330330
return;
331331

332332
auto pkg = getPackage(pkgid);

0 commit comments

Comments
 (0)