]> code.bitgloo.com Git - clyne/sforth.git/commitdiff
zero dot buf
authorClyne Sullivan <clyne@bitgloo.com>
Thu, 28 Nov 2024 01:53:58 +0000 (20:53 -0500)
committerClyne Sullivan <clyne@bitgloo.com>
Thu, 28 Nov 2024 01:53:58 +0000 (20:53 -0500)
main.cpp

index 1b67542f0ab3cb54cedb35f29b333c0119b97244..16de4403a61442a2b0a657ed12a08fed4b4224ad 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -33,7 +33,7 @@ int main(int argc, const char *argv[])
 
     forth::initialize<&fth>(dict.end());
     fth->add(".", [](auto) {
-        char buf[32];
+        char buf[32] = {};
         std::to_chars(buf, buf + sizeof(buf), fth->pop(), fth->base);
         std::cout << buf << ' ';
     });