client session & io BUGFIX uninitialized variable
Only in RELEASE build, some optiomalizations probably.
diff --git a/src/io.c b/src/io.c
index 732abe2..408e44e 100644
--- a/src/io.c
+++ b/src/io.c
@@ -34,7 +34,7 @@
nc_read(struct nc_session *session, char *buf, size_t count, uint16_t *read_timeout)
{
size_t size = 0;
- ssize_t r;
+ ssize_t r = -1;
uint16_t sleep_count = 0;
assert(session);
diff --git a/src/session_client.c b/src/session_client.c
index 8fa4f03..7eb7e37 100644
--- a/src/session_client.c
+++ b/src/session_client.c
@@ -1216,7 +1216,7 @@
struct nc_rpc_getschema *rpc_gs;
struct nc_rpc_subscribe *rpc_sub;
struct lyd_node *data, *node;
- const struct lys_module *ietfnc, *ietfncmon, *notifs, *ietfncwd = NULL;
+ const struct lys_module *ietfnc = NULL, *ietfncmon, *notifs, *ietfncwd = NULL;
char str[11];
uint64_t cur_msgid;