knownhost.c: fix use of uninitialized argument variable wrote

Detected by clang scan in	line 1195, column 18.
This commit is contained in:
Marc Hoersken 2014-12-29 18:37:46 +01:00
parent 253d5922f2
commit c71889017f

View File

@ -1184,8 +1184,8 @@ libssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,
for(node = _libssh2_list_first(&hosts->head);
node;
node= _libssh2_list_next(&node->node) ) {
size_t wrote;
node = _libssh2_list_next(&node->node)) {
size_t wrote = 0;
size_t nwrote;
rc = knownhost_writeline(hosts, node, buffer, sizeof(buffer), &wrote,
type);