Skip to content

Commit 901f6ca

Browse files
committed
FLTK: fix file save as handling
1 parent db9bbf4 commit 901f6ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/platform/fltk/HelpWidget.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,11 @@ struct BrNode : public BaseNode {
437437
struct AnchorNode : public BaseNode {
438438
AnchorNode(Attributes &p) :
439439
BaseNode(),
440+
x1(0),
441+
x2(0),
442+
y1(0),
443+
y2(0),
444+
lineHeight(0),
440445
wrapxy(0),
441446
pushed(0) {
442447
p.getName(name);

src/ui/strlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ String::String(const char *s) {
2323
}
2424

2525
String::String(const String &s) {
26-
_buffer = strdup(s._buffer);
26+
_buffer = s._buffer == NULL ? NULL : strdup(s._buffer);
2727
}
2828

2929
String::String(const char *s, int len) : _buffer(NULL) {

0 commit comments

Comments
 (0)