diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-03 15:06:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-05 05:50:23 +0200 |
commit | 6c85194c3b1baef0eaa011c4f1b8e48e11860f45 (patch) | |
tree | 61f3eb4304091fd2203519702a4f4daf184c5a59 /src/Storage.cpp | |
parent | cbc6997c0a5659239d2cd971f2fa77eeda53550b (diff) |
Make body items private, add accessor functions
This allows body to automatically update dirty state (and other states).
Correctly format newlines in codeblocks in matrix.
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r-- | src/Storage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Storage.cpp b/src/Storage.cpp index 50d1ffd..9a1c492 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -309,7 +309,8 @@ namespace QuickMedia { char *env = getenv("PATH"); std::unordered_set<std::string> paths; string_split(env, ':', [&paths](const char *str, size_t size) { - paths.insert(std::string(str, size)); + if(size > 0) + paths.insert(std::string(str, size)); return true; }); |