[PyKDE] 1 more "taking address of temporary" bug.

Kevin Kofler kkofler at fedoraproject.org
Sun Feb 13 13:37:16 UTC 2011


commit bb9f546a29e9f2e5b80c7c3bf578cab9c44db811
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Sun Feb 13 14:37:01 2011 +0100

    1 more "taking address of temporary" bug.

 PyKDE-3.16.6-gcc46.patch |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch
index 18eb394..9afc90b 100644
--- a/PyKDE-3.16.6-gcc46.patch
+++ b/PyKDE-3.16.6-gcc46.patch
@@ -39,6 +39,19 @@ diff -ur PyKDE-3.16.6/sip/kio/kservicegroup.sip PyKDE-3.16.6-gcc46/sip/kio/kserv
          inst = sipConvertFromType(svcGroupType, sipType_KSycocaEntry_Ptr, sipTransferObj);
  
          if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
+diff -ur PyKDE-3.16.6/sip/kio/kservice.sip PyKDE-3.16.6-gcc46/sip/kio/kservice.sip
+--- PyKDE-3.16.6/sip/kio/kservice.sip	2009-06-10 22:59:28.000000000 +0200
++++ PyKDE-3.16.6-gcc46/sip/kio/kservice.sip	2011-02-13 14:36:44.000000000 +0100
+@@ -235,7 +235,8 @@
+     KService::List::Iterator it;
+     for( it = cList->begin(); it != cList->end(); ++it )
+     {
+-        svc  = &(KService::Ptr)(*it);
++        KService::Ptr p = *it;
++        svc  = &p;
+         inst = sipConvertFromType(svc, sipType_KService_Ptr, sipTransferObj);
+ 
+         if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
 diff -ur PyKDE-3.16.6/sip/kio/kservicetype.sip PyKDE-3.16.6-gcc46/sip/kio/kservicetype.sip
 --- PyKDE-3.16.6/sip/kio/kservicetype.sip	2009-06-10 23:48:24.000000000 +0200
 +++ PyKDE-3.16.6-gcc46/sip/kio/kservicetype.sip	2011-02-13 13:06:13.000000000 +0100


More information about the scm-commits mailing list