Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
969a1ef4
Commit
969a1ef4
authored
Feb 23, 2022
by
Rob Swindell
💬
Browse files
Initialize a bunch of class members to resolve Coverity issues
CID 319034
parent
5b9c39e1
Pipeline
#2769
failed with stage
in 8 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
src/sbbs3/sbbs.h
src/sbbs3/sbbs.h
+17
-19
No files found.
src/sbbs3/sbbs.h
View file @
969a1ef4
...
...
@@ -483,7 +483,7 @@ public:
JSRuntime
*
js_hotkey_runtime
;
JSContext
*
js_hotkey_cx
;
JSObject
*
js_hotkey_glob
;
js_callback_t
js_callback
;
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
);
JSContext
*
js_init
(
JSRuntime
**
,
JSObject
**
,
const
char
*
desc
);
...
...
@@ -506,8 +506,6 @@ public:
char
rlogin_pass
[
LEN_PASS
+
1
];
char
rlogin_term
[
TELNET_TERM_MAXLEN
+
1
];
/* RLogin passed terminal type/speed (e.g. "xterm/57600") */
uint
temp_dirnum
;
FILE
*
nodefile_fp
,
*
node_ext_fp
,
*
logfile_fp
;
...
...
@@ -537,37 +535,37 @@ public:
ushort
node_connection
;
char
connection
[
LEN_MODEM
+
1
];
/* Connection Description */
ulong
cur_rate
;
/* Current Connection (DCE) Rate */
ulong
cur_cps
;
/* Current Average Transfer CPS */
ulong
dte_rate
;
/* Current COM Port (DTE) Rate */
time_t
timeout
;
/* User inactivity timeout reference */
ulong
timeleft_warn
;
/* low timeleft warning flag */
ulong
cur_rate
=
0
;
/* Current Connection (DCE) Rate */
ulong
cur_cps
=
0
;
/* Current Average Transfer CPS */
ulong
dte_rate
=
0
;
/* Current COM Port (DTE) Rate */
time_t
timeout
=
0
;
/* User inactivity timeout reference */
ulong
timeleft_warn
=
0
;
/* low timeleft warning flag */
uint
curatr
;
/* Current Text Attributes Always */
uint
attr_stack
[
64
];
/* Saved attributes (stack) */
int
attr_sp
;
/* Attribute stack pointer */
long
lncntr
;
/* Line Counter - for PAUSE */
bool
msghdr_tos
;
/* Message header was displayed at Top of Screen */
long
row
;
/* Current row */
long
rows
;
/* Current number of Rows for User */
long
cols
;
/* Current number of Columns for User */
long
row
=
0
;
/* Current row */
long
rows
=
0
;
/* Current number of Rows for User */
long
cols
=
0
;
/* Current number of Columns for User */
long
column
;
/* Current column counter (for line counter) */
long
tabstop
;
/* Current symmetric-tabstop (size) */
long
lastlinelen
;
/* The previously displayed line length */
long
autoterm
;
/* Auto-detected terminal type */
long
autoterm
=
0
;
/* Auto-detected terminal type */
char
terminal
[
TELNET_TERM_MAXLEN
+
1
];
// <- answer() writes to this
long
cterm_version
;
/* (MajorVer*1000) + MinorVer */
long
cterm_version
=
0
;
/* (MajorVer*1000) + MinorVer */
link_list_t
savedlines
;
char
lbuf
[
LINE_BUFSIZE
+
1
];
/* Temp storage for each line output */
int
lbuflen
;
/* Number of characters in line buffer */
uint
latr
;
/* Starting attribute of line buffer */
uint
latr
=
0
;
/* Starting attribute of line buffer */
ulong
console
;
/* Defines current Console settings */
char
wordwrap
[
81
];
/* Word wrap buffer */
time_t
now
,
/* Used to store current time in Unix format */
time_t
now
=
0
,
/* Used to store current time in Unix format */
last_sysop_auth
,
/* Time sysop was last authenticated */
answertime
,
/* Time call was answered */
logontime
,
/* Time user logged on */
starttime
,
/* Time stamp to use for time left calcs */
ns_time
,
/* File new-scan time */
answertime
=
0
,
/* Time call was answered */
logontime
=
0
,
/* Time user logged on */
starttime
=
0
,
/* Time stamp to use for time left calcs */
ns_time
=
0
,
/* File new-scan time */
last_ns_time
;
/* Most recent new-file-scan this call */
uchar
action
;
/* Current action of user */
long
online
;
/* Remote/Local or not online */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment