File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
7
7
Version 4.0.2 (in progress)
8
8
===========================
9
9
10
+ 2020-01-16: mcfarljm
11
+ #1643 #1654 When using -doxygen, fix segfault when nameless parameters or vararg parameters
12
+ are used.
13
+
10
14
2020-01-16: mcfarljm
11
15
#1632 #1659 Fix newline handling for doxygen "///" comments.
12
16
Original file line number Diff line number Diff line change @@ -449,12 +449,12 @@ std::string PyDocConverter::getParamValue(std::string param) {
449
449
ParmList *plist = CopyParmList (Getattr (currentNode, " parms" ));
450
450
for (Parm *p = plist; p; p = nextSibling (p)) {
451
451
String *pname = Getattr (p, " name" );
452
- if (Char (pname) != param)
453
- continue ;
454
-
455
- String *pval = Getattr (p, " value " );
456
- if (pval) value = Char (pval) ;
457
- break ;
452
+ if (pname && Char (pname) == param) {
453
+ String *pval = Getattr (p, " value " ) ;
454
+ if (pval)
455
+ value = Char (pval );
456
+ break ;
457
+ }
458
458
}
459
459
Delete (plist);
460
460
return value;
You can’t perform that action at this time.
0 commit comments