fixed some unreadVariable Cppcheck warnings
This commit is contained in:
+1
-1
@@ -1015,7 +1015,7 @@ internal_log_message(const enum logLevels lvl,
|
||||
char buff[LOG_BUFFER_SIZE + 43]; /* 31 ("[2022-10-07T19:58:33.065+0900] ") + 8 (log level) + 4 (space+cr+lf+\0) */
|
||||
int len = 0;
|
||||
enum logReturns rv = LOG_STARTUP_OK;
|
||||
int writereply = 0;
|
||||
int writereply;
|
||||
|
||||
if (g_staticLogConfig == NULL)
|
||||
{
|
||||
|
||||
+1
-1
@@ -2060,7 +2060,7 @@ g_obj_wait(tintptr *read_objs, int rcount, tintptr *write_objs, int wcount,
|
||||
#else
|
||||
struct pollfd pollfd[MAX_HANDLES];
|
||||
int sck;
|
||||
int i = 0;
|
||||
int i;
|
||||
unsigned int j = 0;
|
||||
int rv = 1;
|
||||
|
||||
|
||||
@@ -777,7 +777,7 @@ g_strtrim(char *str, int trim_flags)
|
||||
char *
|
||||
g_strnjoin(char *dest, int dest_len, const char *joiner, const char *src[], int src_len)
|
||||
{
|
||||
int len = 0;
|
||||
int len;
|
||||
int joiner_len;
|
||||
int i = 0;
|
||||
int dest_remaining;
|
||||
|
||||
+4
-5
@@ -308,11 +308,11 @@ trans_send_waiting(struct trans *self, int block)
|
||||
int
|
||||
trans_check_wait_objs(struct trans *self)
|
||||
{
|
||||
tbus in_sck = (tbus) 0;
|
||||
tbus in_sck;
|
||||
struct trans *in_trans = (struct trans *) NULL;
|
||||
int read_bytes = 0;
|
||||
unsigned int to_read = 0;
|
||||
unsigned int read_so_far = 0;
|
||||
int read_bytes;
|
||||
unsigned int to_read;
|
||||
unsigned int read_so_far;
|
||||
int rv = 0;
|
||||
enum xrdp_source cur_source;
|
||||
|
||||
@@ -616,7 +616,6 @@ trans_write_copy_s(struct trans *self, struct stream *out_s)
|
||||
return 1;
|
||||
}
|
||||
out_data = out_s->data;
|
||||
sent = 0;
|
||||
size = (int) (out_s->end - out_s->data);
|
||||
if (self->wait_s == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user