FLTK logo

[master] f779097 - FLUID: fix possible null pointer. GitHub #945

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] f779097 - FLUID: fix possible null pointer. GitHub #945 "Matthias Melcher" 08:47 Apr 04  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.