diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-04-04 17:43:21 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-04-04 17:43:40 +0200 |
| commit | f779097c967f0224eac5bdd89df2a363c614fa91 (patch) | |
| tree | 49c847d756e74ec8b6f8d4bc136d6e1e55b3b5d2 | |
| parent | 39c1386ba799d529d056f5d2789f8eb05b7534cd (diff) | |
FLUID: fix possible null pointer. GitHub #945
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index f7a7f30d8..6dc9fc927 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/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 } |
