mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
example/subsystem_netconf.c: Fix uninitialized variable bug
This commit is contained in:
@ -228,7 +228,8 @@ int main(int argc, char *argv[])
|
||||
goto shutdown;
|
||||
|
||||
printf("Reading NETCONF server <hello>\n");
|
||||
if (-1 == netconf_read_until(channel, "</hello>", buf, sizeof(buf)))
|
||||
len = netconf_read_until(channel, "</hello>", buf, sizeof(buf));
|
||||
if (-1 == len)
|
||||
goto shutdown;
|
||||
|
||||
printf("Got %d bytes:\n----------------------\n%s", len, buf);
|
||||
|
Reference in New Issue
Block a user