summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-03-10 18:15:21 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-03-10 18:15:21 +0100
commitf99fdcdc71a7c111a370818ca7d06761a2e0e5b5 (patch)
tree405220f4070b54948aecd2effb868865de966c15 /fluid
parent8838e976a0b87279e5a98e560ed3d6ef20dc9139 (diff)
Fix fluid documentation generation
std::string doesn't allow nullptr as input string
Diffstat (limited to 'fluid')
-rw-r--r--fluid/app/fluid.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/app/fluid.cxx b/fluid/app/fluid.cxx
index b553b52a5..91c28d0e6 100644
--- a/fluid/app/fluid.cxx
+++ b/fluid/app/fluid.cxx
@@ -244,7 +244,8 @@ static void create_tmpdir() {
#else
fl_snprintf(buf, sizeof(buf)-1, "fluid-%d/", getpid());
std::string name = buf;
- std::string path = fl_getenv("TMPDIR");
+ auto path_temp = fl_getenv("TMPDIR");
+ std::string path = path_temp ? path_temp : "";
if (!path.empty()) {
end_with_slash(path);
path += name;