summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qmachparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin/qmachparser.cpp')
-rw-r--r--src/corelib/plugin/qmachparser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/plugin/qmachparser.cpp b/src/corelib/plugin/qmachparser.cpp
index ef989f2ac09..88462b97b20 100644
--- a/src/corelib/plugin/qmachparser.cpp
+++ b/src/corelib/plugin/qmachparser.cpp
@@ -204,8 +204,7 @@ QLibraryScanResult QMachOParser::parse(const char *m_s, ulong fdlen, QString *e
}
// No .qtmetadata section was found
- if (errorString)
- *errorString = QLibrary::tr("'%1' is not a Qt plugin").arg(library);
+ *errorString = QLibrary::tr("'%1' is not a Qt plugin").arg(*errorString);
return {};
}