diff options
author | joerg <joerg@pkgsrc.org> | 2012-11-19 23:21:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-11-19 23:21:39 +0000 |
commit | b292b86beffaa9766ada3a4f1aef6cbf43ff5742 (patch) | |
tree | 916ac2b87095969e5ccc8dba8d7b6f1733fd1716 /inputmethod | |
parent | e7a38bf31d05ac6ed3d1a0afd1c174ce74317ef4 (diff) | |
download | pkgsrc-b292b86beffaa9766ada3a4f1aef6cbf43ff5742.tar.gz |
Fix use of uninitialized memory. Can't use a default argument of
QVariant().
Diffstat (limited to 'inputmethod')
-rw-r--r-- | inputmethod/ibus-qt/distinfo | 4 | ||||
-rw-r--r-- | inputmethod/ibus-qt/patches/patch-src_qibusserializable.cpp | 13 | ||||
-rw-r--r-- | inputmethod/ibus-qt/patches/patch-src_qibusserializable.h | 13 |
3 files changed, 29 insertions, 1 deletions
diff --git a/inputmethod/ibus-qt/distinfo b/inputmethod/ibus-qt/distinfo index 615d15ce9fd..b73fad55969 100644 --- a/inputmethod/ibus-qt/distinfo +++ b/inputmethod/ibus-qt/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.2 2010/08/19 11:27:00 obache Exp $ +$NetBSD: distinfo,v 1.3 2012/11/19 23:21:39 joerg Exp $ SHA1 (ibus-qt-1.3.1-Source.tar.gz) = 1de4e2ad680b9c9c6bfe2a1c3e85a11dd204c46a RMD160 (ibus-qt-1.3.1-Source.tar.gz) = e1d3f2b42513d5813b042014dfb2291cf79e4d75 Size (ibus-qt-1.3.1-Source.tar.gz) = 141488 bytes +SHA1 (patch-src_qibusserializable.cpp) = f4076b4ffa1af51634d3a9af93ae356e93df3b5e +SHA1 (patch-src_qibusserializable.h) = 5031ba5c5a0221abda5b6f1c7d9b143639f62858 diff --git a/inputmethod/ibus-qt/patches/patch-src_qibusserializable.cpp b/inputmethod/ibus-qt/patches/patch-src_qibusserializable.cpp new file mode 100644 index 00000000000..640ba0b86bd --- /dev/null +++ b/inputmethod/ibus-qt/patches/patch-src_qibusserializable.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-src_qibusserializable.cpp,v 1.1 2012/11/19 23:21:39 joerg Exp $ + +--- src/qibusserializable.cpp.orig 2012-11-19 16:47:11.000000000 +0000 ++++ src/qibusserializable.cpp +@@ -25,7 +25,7 @@ Serializable::getAttachment (const QStri + SerializablePointer + Serializable::removeAttachment (const QString &key) + { +- SerializablePointer p = m_attachments.value (key, p); ++ SerializablePointer p = m_attachments.value (key); + if (p) + m_attachments.remove (key); + return p; diff --git a/inputmethod/ibus-qt/patches/patch-src_qibusserializable.h b/inputmethod/ibus-qt/patches/patch-src_qibusserializable.h new file mode 100644 index 00000000000..3a62573cfea --- /dev/null +++ b/inputmethod/ibus-qt/patches/patch-src_qibusserializable.h @@ -0,0 +1,13 @@ +$NetBSD: patch-src_qibusserializable.h,v 1.1 2012/11/19 23:21:39 joerg Exp $ + +--- src/qibusserializable.h.orig 2012-11-19 16:45:31.000000000 +0000 ++++ src/qibusserializable.h +@@ -91,7 +91,7 @@ private: + + template<typename T> + QVariant & +-qVariantFromSerializable (const Pointer<T> &p, QVariant & variant = QVariant ()) ++qVariantFromSerializable (const Pointer<T> &p, QVariant & variant) + { + QDBusArgument argument; + |