[arch-commits] Commit in kdebindings-smokegen/trunk (fix-crash.patch)

Andrea Scarpino andrea at archlinux.org
Thu Dec 8 10:23:46 UTC 2011


    Date: Thursday, December 8, 2011 @ 05:23:45
  Author: andrea
Revision: 144758

Add missing patch

Added:
  kdebindings-smokegen/trunk/fix-crash.patch

-----------------+
 fix-crash.patch |   13 +++++++++++++
 1 file changed, 13 insertions(+)

Added: fix-crash.patch
===================================================================
--- fix-crash.patch	                        (rev 0)
+++ fix-crash.patch	2011-12-08 10:23:45 UTC (rev 144758)
@@ -0,0 +1,13 @@
+diff -up smokegen-4.7.0/parser/type_compiler.cpp.orig smokegen-4.7.0/parser/type_compiler.cpp
+diff -up smokegen-4.7.0/type_compiler.cpp.orig smokegen-4.7.0/type_compiler.cpp
+--- smokegen-4.7.0/type_compiler.cpp.orig	2011-08-02 14:34:08.000000000 +0200
++++ smokegen-4.7.0/type_compiler.cpp	2011-08-02 14:34:34.000000000 +0200
+@@ -191,6 +191,8 @@ void TypeCompiler::visitParameterDeclara
+ 
+ void TypeCompiler::visitPtrOperator(PtrOperatorAST* node)
+ {
++    if ( ! m_session->token_stream ) return;
++    if ( ! token_text(m_session->token_stream->kind(node->op)) ) return;
+     if (token_text(m_session->token_stream->kind(node->op))[0] == '*') {
+         QPair<bool, bool> cv = m_visitor->parseCv(node->cv);
+         pointerDepth.append(cv.first);




More information about the arch-commits mailing list