|
|
commit f779097c967f0224eac5bdd89df2a363c614fa91
Author: Matthias Melcher <github@matthiasm.com>
AuthorDate: Thu Apr 4 17:43:21 2024 +0200
Commit: Matthias Melcher <github@matthiasm.com>
CommitDate: Thu Apr 4 17:43:40 2024 +0200
FLUID: fix possible null pointer. GitHub #945
fluid/Fl_Function_Type.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git fluid/Fl_Function_Type.cxx fluid/Fl_Function_Type.cxx
index f7a7f30..6dc9fc9 100644
--- fluid/Fl_Function_Type.cxx
+++ fluid/Fl_Function_Type.cxx
@@ -611,6 +611,7 @@ void Fl_Code_Type::open() {
if ( G_use_external_editor && G_external_editor_command[0] ) {
const char *cmd = G_external_editor_command;
const char *code = name();
+ if (!code) code = "";
if ( editor_.open_editor(cmd, code) == 0 )
return; // return if editor opened ok, fall thru to built-in if not
}
[ Direct Link to Message ] | |
|
| |