Skip to content
Snippets Groups Projects
Commit 1692de5e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Initialize more sbbs_t members in class declaration

CID 319034
parent cb9a3753
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -406,11 +406,11 @@ public:
char client_ipaddr[INET6_ADDRSTRLEN];
char local_addr[INET6_ADDRSTRLEN];
#ifdef USE_CRYPTLIB
CRYPT_SESSION ssh_session;
CRYPT_SESSION ssh_session=-1;
#endif
int session_channel;
int session_channel=-1;
bool ssh_mode;
SOCKET passthru_socket;
SOCKET passthru_socket=INVALID_SOCKET;
bool passthru_socket_active;
void passthru_socket_activate(bool);
bool passthru_thread_running;
......@@ -433,7 +433,7 @@ public:
RingBuf inbuf;
RingBuf outbuf;
bool WaitForOutbufEmpty(int timeout) { return WaitForEvent(outbuf.empty_event, timeout) == WAIT_OBJECT_0; }
HANDLE input_thread;
HANDLE input_thread=nullptr;
pthread_mutex_t input_thread_mutex;
bool input_thread_mutex_created;
pthread_mutex_t ssh_mutex;
......@@ -475,14 +475,14 @@ public:
bool event_thread_running;
bool output_thread_running;
bool input_thread_running;
bool terminate_output_thread;
bool terminate_output_thread=false;
JSRuntime* js_runtime;
JSContext* js_cx;
JSObject* js_glob;
JSObject* js_glob=nullptr;
JSRuntime* js_hotkey_runtime;
JSContext* js_hotkey_cx;
JSObject* js_hotkey_glob;
JSObject* js_hotkey_glob=nullptr;
js_callback_t js_callback{};
long js_execfile(const char *fname, const char* startup_dir, JSObject* scope = NULL, JSContext* cx = NULL, JSObject* glob = NULL);
long js_execxtrn(const char *fname, const char* startup_dir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment