Skip to content

Commit

Permalink
lnc2 MAINTENANCE uninitialized vars
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Aug 15, 2024
1 parent 9615c6d commit 73f63af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/session_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -3602,7 +3602,7 @@ nc_server_notif_cert_exp_wakeup_time_get(struct nc_cert_expiration *exp_dates, i
time_t min_time = LONG_MAX;
int i;
double diff;
time_t now, wakeup_time;
time_t now, wakeup_time = 0;

*next = NULL;

Expand Down
5 changes: 4 additions & 1 deletion tests/ln2_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ ln2_glob_test_server_thread(void *arg)

/* accept a session and add it to the poll session structure */
msgtype = nc_accept(NC_ACCEPT_TIMEOUT, test_ctx->ctx, &session);
assert(msgtype == NC_MSG_HELLO);
if (msgtype != NC_MSG_HELLO) {
SETUP_FAIL_LOG;
return NULL;
}

ret = nc_ps_add_session(ps, session);
assert(!ret);
Expand Down

0 comments on commit 73f63af

Please sign in to comment.