summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r--src/corelib/plugin/quuid.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp
index ddc388c..e07a1aa 100644
--- a/src/corelib/plugin/quuid.cpp
+++ b/src/corelib/plugin/quuid.cpp
@@ -342,7 +342,15 @@ QUuid::QUuid(const QString &text)
*/
QUuid::QUuid(const char *text)
{
- *this = QUuid(QString::fromLatin1(text));
+ if (!text) {
+ *this = QUuid();
+ return;
+ }
+
+ if (!_q_uuidFromHex(text, data1, data2, data3, data4)) {
+ *this = QUuid();
+ return;
+ }
}
/*!