summaryrefslogtreecommitdiff
path: root/fluid/ExternalCodeEditor_WIN32.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2024-04-04 10:03:35 -0700
committerGreg Ercolano <erco@seriss.com>2024-04-04 10:03:35 -0700
commit06e495f26256a6d987f6d76cb291ba62fee85857 (patch)
tree68a73a61a2dc5cbdfcaf92052b02ddd28af10bba /fluid/ExternalCodeEditor_WIN32.cxx
parentf779097c967f0224eac5bdd89df2a363c614fa91 (diff)
Add NULL check to UNIX save_file() (#945)
Diffstat (limited to 'fluid/ExternalCodeEditor_WIN32.cxx')
-rw-r--r--fluid/ExternalCodeEditor_WIN32.cxx4
1 files changed, 3 insertions, 1 deletions
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