Skip to content

Commit 34bb8cb

Browse files
jukkarmmahadevan108
authored andcommitted
logging: backend: websocket: Avoid uninit variable warning
The ret variable might be used uninitialized. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent c225b02 commit 34bb8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/logging/backends/log_backend_ws.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static int ws_console_out(struct log_backend_ws_ctx *ctx, int c)
6464
static int max_cnt = CONFIG_LOG_BACKEND_WS_TX_RETRY_CNT;
6565
bool printnow = false;
6666
unsigned int cnt = 0;
67-
int ret;
67+
int ret = 0;
6868

6969
if (pos >= (sizeof(output_buf) - 1)) {
7070
printnow = true;

0 commit comments

Comments
 (0)