Blame doxygen-xmlgen-regression.patch

Björn Esser 2920bf
From 0f02761a158a5e9ddbd5801682482af8986dbc35 Mon Sep 17 00:00:00 2001
Björn Esser 2920bf
From: albert-github <albert.tests@gmail.com>
Björn Esser 2920bf
Date: Wed, 4 Jan 2017 12:24:55 +0100
Björn Esser 2920bf
Subject: [PATCH] Bug 776791 - [1.8.13 Regression] Segfault building the
Björn Esser 2920bf
 breathe docs
Björn Esser 2920bf
Björn Esser 2920bf
Protected against NULL pointer of variable al
Björn Esser 2920bf
---
Björn Esser 2920bf
 src/xmlgen.cpp | 2 +-
Björn Esser 2920bf
 1 file changed, 1 insertion(+), 1 deletion(-)
Björn Esser 2920bf
Björn Esser 2920bf
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
Björn Esser 2920bf
index fe95c7a..70e198a 100644
Björn Esser 2920bf
--- a/src/xmlgen.cpp
Björn Esser 2920bf
+++ b/src/xmlgen.cpp
Björn Esser 2920bf
@@ -620,7 +620,7 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
Björn Esser 2920bf
     if (md->isInline()) t << "yes"; else t << "no";
Björn Esser 2920bf
     t << "\"";
Björn Esser 2920bf
 
Björn Esser 2920bf
-    if (al->refQualifier!=RefQualifierNone)
Björn Esser 2920bf
+    if (al!=0 && al->refQualifier!=RefQualifierNone)
Björn Esser 2920bf
     {
Björn Esser 2920bf
       t << " refqual=\"";
Björn Esser 2920bf
       if (al->refQualifier==RefQualifierLValue) t << "lvalue"; else t << "rvalue";