From 06e495f26256a6d987f6d76cb291ba62fee85857 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Thu, 4 Apr 2024 10:03:35 -0700 Subject: Add NULL check to UNIX save_file() (#945) --- fluid/ExternalCodeEditor_WIN32.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fluid/ExternalCodeEditor_WIN32.cxx') diff --git a/fluid/ExternalCodeEditor_WIN32.cxx b/fluid/ExternalCodeEditor_WIN32.cxx index 1afb0afff..bb7d5791a 100644 --- a/fluid/ExternalCodeEditor_WIN32.cxx +++ b/fluid/ExternalCodeEditor_WIN32.cxx @@ -544,8 +544,10 @@ int ExternalCodeEditor::reap_editor(DWORD *pid_reaped) { return -1; // any other return unexpected } -// [Public] Open external editor using 'editor_cmd' to edit 'code' +// [Public] Open external editor using 'editor_cmd' to edit 'code'. +// // 'code' contains multiline code to be edited as a temp file. +// 'code' can be NULL -- edits an empty file if so. // // Returns: // 0 if succeeds -- cgit v1.2.3