[scp.c hostfile.c sftp-client.c]
     Silence bogus -Wuninitialized warnings; ok djm@
This commit is contained in:
Darren Tucker 2005-08-02 17:07:07 +10:00
parent 9786e6e2a0
commit 4085853915
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
20050802
- (dtucker) OpenBSD CVS Sync
- dtucker@cvs.openbsd.org 2005/07/27 10:39:03
[scp.c hostfile.c sftp-client.c]
Silence bogus -Wuninitialized warnings; ok djm@
20050726 20050726
- (dtucker) [configure.ac] Update zlib warning message too, pointed out by - (dtucker) [configure.ac] Update zlib warning message too, pointed out by
tim@. tim@.
@ -2879,4 +2885,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3857 2005/07/26 11:54:56 djm Exp $ $Id: ChangeLog,v 1.3858 2005/08/02 07:07:07 dtucker Exp $

View File

@ -36,7 +36,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: hostfile.c,v 1.34 2005/03/10 22:01:05 deraadt Exp $"); RCSID("$OpenBSD: hostfile.c,v 1.35 2005/07/27 10:39:03 dtucker Exp $");
#include <resolv.h> #include <resolv.h>
#include <openssl/hmac.h> #include <openssl/hmac.h>
@ -315,7 +315,7 @@ add_host_to_hostfile(const char *filename, const char *host, const Key *key,
{ {
FILE *f; FILE *f;
int success = 0; int success = 0;
char *hashed_host; char *hashed_host = NULL;
if (key == NULL) if (key == NULL)
return 1; /* XXX ? */ return 1; /* XXX ? */

4
scp.c
View File

@ -71,7 +71,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: scp.c,v 1.124 2005/06/17 02:44:33 djm Exp $"); RCSID("$OpenBSD: scp.c,v 1.125 2005/07/27 10:39:03 dtucker Exp $");
#include "xmalloc.h" #include "xmalloc.h"
#include "atomicio.h" #include "atomicio.h"
@ -506,7 +506,7 @@ source(int argc, char **argv)
BUF *bp; BUF *bp;
off_t i, amt, statbytes; off_t i, amt, statbytes;
size_t result; size_t result;
int fd, haderr, indx; int fd = -1, haderr, indx;
char *last, *name, buf[2048]; char *last, *name, buf[2048];
int len; int len;

View File

@ -20,7 +20,7 @@
/* XXX: copy between two remote sites */ /* XXX: copy between two remote sites */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: sftp-client.c,v 1.56 2005/07/17 07:17:55 djm Exp $"); RCSID("$OpenBSD: sftp-client.c,v 1.57 2005/07/27 10:39:03 dtucker Exp $");
#include "openbsd-compat/sys-queue.h" #include "openbsd-compat/sys-queue.h"
@ -742,7 +742,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
Attrib junk, *a; Attrib junk, *a;
Buffer msg; Buffer msg;
char *handle; char *handle;
int local_fd, status, write_error; int local_fd, status = 0, write_error;
int read_error, write_errno; int read_error, write_errno;
u_int64_t offset, size; u_int64_t offset, size;
u_int handle_len, mode, type, id, buflen, num_req, max_req; u_int handle_len, mode, type, id, buflen, num_req, max_req;