SHA256
8
0
forked from pool/doxygen

Accepting request 459311 from home:dimstar:Factory

Fix the segfault seen in :J

OBS-URL: https://build.opensuse.org/request/show/459311
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=116
This commit is contained in:
2017-02-20 19:40:23 +00:00
committed by Git OBS Bridge
parent 5c273b8c9d
commit 65aa325f64
3 changed files with 34 additions and 0 deletions

View File

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