Skip to content

Commit 143aa14

Browse files
committed
session MAINTENANCE uninit var warning
1 parent 7250c57 commit 143aa14

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/session_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ recv_reply(struct nc_session *session, int timeout, struct lyd_node *op, uint64_
18571857
static int
18581858
recv_reply_dup_rpc(struct nc_session *session, struct nc_rpc *rpc, struct lyd_node **op)
18591859
{
1860-
LY_ERR lyrc;
1860+
LY_ERR lyrc = LY_SUCCESS;
18611861
struct nc_rpc_act_generic *rpc_gen;
18621862
struct ly_in *in;
18631863
struct lyd_node *tree, *op2;

src/session_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,7 @@ nc_accept_unix(struct nc_session *session, int sock)
18801880
const struct passwd *pw;
18811881
char *username;
18821882
session->ti_type = NC_TI_UNIX;
1883-
uid_t uid;
1883+
uid_t uid = 0;
18841884

18851885
if (nc_get_uid(sock, &uid)) {
18861886
close(sock);

0 commit comments

Comments
 (0)