From f779097c967f0224eac5bdd89df2a363c614fa91 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 4 Apr 2024 17:43:21 +0200 Subject: FLUID: fix possible null pointer. GitHub #945 --- fluid/Fl_Function_Type.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'fluid') 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 } -- cgit v1.2.3