aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/proc_walk
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/entropy/proc_walk
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/entropy/proc_walk')
-rw-r--r--src/lib/entropy/proc_walk/proc_walk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/entropy/proc_walk/proc_walk.cpp b/src/lib/entropy/proc_walk/proc_walk.cpp
index 7fbea678e..3d63e5d5a 100644
--- a/src/lib/entropy/proc_walk/proc_walk.cpp
+++ b/src/lib/entropy/proc_walk/proc_walk.cpp
@@ -86,7 +86,7 @@ int Directory_Walker::next_fd()
if(filename == "." || filename == "..")
continue;
- const std::string full_path = entry.second + '/' + filename;
+ const std::string full_path = entry.second + "/" + filename;
struct stat stat_buf;
if(::lstat(full_path.c_str(), &stat_buf) == -1)