example/subsystem_netconf.c: Fix uninitialized variable bug
This commit is contained in:
parent
4ae907cdef
commit
7e47bd6640
@ -228,7 +228,8 @@ int main(int argc, char *argv[])
|
|||||||
goto shutdown;
|
goto shutdown;
|
||||||
|
|
||||||
printf("Reading NETCONF server <hello>\n");
|
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;
|
goto shutdown;
|
||||||
|
|
||||||
printf("Got %d bytes:\n----------------------\n%s", len, buf);
|
printf("Got %d bytes:\n----------------------\n%s", len, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user