[PyKDE/f15/master] 2 more "taking address of temporary" bugs.
Kevin Kofler
kkofler at fedoraproject.org
Sun Feb 13 14:05:25 UTC 2011
commit c1b7c3bf43eccd7550a296a6b38dbf72a6879914
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Sun Feb 13 15:04:59 2011 +0100
2 more "taking address of temporary" bugs.
PyKDE-3.16.6-gcc46.patch | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch
index 9afc90b..da8d38e 100644
--- a/PyKDE-3.16.6-gcc46.patch
+++ b/PyKDE-3.16.6-gcc46.patch
@@ -26,6 +26,29 @@ diff -ur PyKDE-3.16.6/sip/kdeui/kkeydialog.sip PyKDE-3.16.6-gcc46/sip/kdeui/kkey
PyObject *a1 = PyInt_FromLong ((long) it.current ());
if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))
+diff -ur PyKDE-3.16.6/sip/kio/kfilemetainfo.sip PyKDE-3.16.6-gcc46/sip/kio/kfilemetainfo.sip
+--- PyKDE-3.16.6/sip/kio/kfilemetainfo.sip 2006-09-22 05:11:14.000000000 +0200
++++ PyKDE-3.16.6-gcc46/sip/kio/kfilemetainfo.sip 2011-02-13 15:04:41.000000000 +0100
+@@ -256,7 +256,8 @@
+ %MethodCode
+ //returns (KFileMetaInfoItem)
+ //takes key | (QString)
+- sipRes = &((*sipCpp) [(const QString&) *a0]);
++ KFileMetaInfoItem item = (*sipCpp) [(const QString&) *a0];
++ sipRes = &item;
+ %End
+
+ %End
+@@ -339,7 +340,8 @@
+ %MethodCode
+ //returns (KFileMetaInfoGroup)
+ //takes key | (QString)
+- sipRes = &((*sipCpp) [(const QString&)*a0]);
++ KFileMetaInfoGroup group = (*sipCpp) [(const QString&)*a0];
++ sipRes = &group;
+ %End
+
+ %End
diff -ur PyKDE-3.16.6/sip/kio/kservicegroup.sip PyKDE-3.16.6-gcc46/sip/kio/kservicegroup.sip
--- PyKDE-3.16.6/sip/kio/kservicegroup.sip 2009-06-10 22:58:33.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/kservicegroup.sip 2011-02-13 13:06:46.000000000 +0100
More information about the scm-commits
mailing list