aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-09-22 23:13:08 +0200
committerSimon Warta <[email protected]>2015-09-22 23:13:08 +0200
commit1f62dbcd0108a2cd99ad473299e041163a638b1c (patch)
treefb74d95411c5f8c41ca7f409cfc8d36513023363 /src/lib/utils
parentac9689990da914cd58788dab9d5e0d7bebb72e30 (diff)
Avoid concatination of chars
Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/filesystem.cpp b/src/lib/utils/filesystem.cpp
index 950d4d4e2..8d51e64bd 100644
--- a/src/lib/utils/filesystem.cpp
+++ b/src/lib/utils/filesystem.cpp
@@ -86,7 +86,7 @@ std::vector<std::string> impl_readdir(const std::string& dir_path)
const std::string filename = dirent->d_name;
if(filename == "." || filename == "..")
continue;
- const std::string full_path = cur_path + '/' + filename;
+ const std::string full_path = cur_path + "/" + filename;
struct stat stat_buf;