diff options
| author | Fuwn <[email protected]> | 2022-05-09 10:12:30 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-09 10:12:30 +0000 |
| commit | 3ecf9bbdd5544b40255b44c7129e759ab66e5826 (patch) | |
| tree | b3c86e40f69bb75814c3510093d6291f05106308 | |
| parent | fix(maple.cc): iterator on non-variable (diff) | |
| download | maple-3ecf9bbdd5544b40255b44c7129e759ab66e5826.tar.xz maple-3ecf9bbdd5544b40255b44c7129e759ab66e5826.zip | |
fix(maple.cc): conditional jump or move depends on uninitialised value(s)
| -rw-r--r-- | maple/maple.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/maple/maple.cc b/maple/maple.cc index 7b30d70..42f8048 100644 --- a/maple/maple.cc +++ b/maple/maple.cc @@ -52,8 +52,8 @@ auto main() -> int { // Find and keep track of all Gemini files to serve for (const std::filesystem::directory_entry &entry : - std::filesystem::recursive_directory_iterator(".maple/gmi")) { - + std::filesystem::recursive_directory_iterator(".maple/gmi")) + { std::string file_extension = entry.path().string().substr( entry.path().string().find_last_of('.') + 1 ); @@ -102,7 +102,7 @@ auto main() -> int { size_t index_of_junk; int request_scheme; // Gemini = 1, Titan = 2, Error = 0 size_t bytes_read; - char request[1024]; + char request[1024] {}; SSL_read_ex(ssl, request, sizeof(request), &bytes_read); |