1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

examples: avoid use of uninitialized variable 'sock'

This commit is contained in:
Daniel Stenberg
2010-04-30 12:28:35 +02:00
parent 204100e636
commit 7bbefe0660
4 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ int main(int argc, char *argv[])
local = fopen(loclfile, "rb");
if (!local) {
fprintf(stderr, "Can't open local file %s\n", loclfile);
goto shutdown;
return -1;
}
stat(loclfile, &fileinfo);