--- nono/debugger/console.h 2026/04/29 17:04:33 1.1.1.2 +++ nono/debugger/console.h 2026/04/29 17:04:40 1.1.1.3 @@ -49,17 +49,17 @@ class Console struct { int fd; FILE *file; - } inp, out; + } inp {}, out {}; // Editline を使うかどうかのフラグ。継承側がセットする。 // 今のところ TCP console では動かないのでこんなことになっている。 - bool use_editline = false; + bool use_editline {}; // Editline - const char *prompt = NULL; + const char *prompt {}; #if defined(HAVE_HISTEDIT_H) - EditLine *el = NULL; - History *hist = NULL; + EditLine *el {}; + History *hist {}; HistEvent hev {}; #endif @@ -98,8 +98,8 @@ class ConsoleTCP void Close() override; private: - int ls = 0; - int sock = 0; - struct addrinfo *res = NULL; - struct addrinfo *ai = NULL; + int ls {}; + int sock {}; + struct addrinfo *res {}; + struct addrinfo *ai {}; };