diff options
author | 2004-06-03 12:22:20 +0000 | |
---|---|---|
committer | 2004-06-03 12:22:20 +0000 | |
commit | db317d513696ac7653449f14b77d2d323ef4d466 (patch) | |
tree | 73f25e5b8dd37cd8bed2d24758bdb77a9cbdacc0 | |
parent | allow '!!prog', where the second '!' means messages from prog should only (diff) | |
download | wireguard-openbsd-db317d513696ac7653449f14b77d2d323ef4d466.tar.xz wireguard-openbsd-db317d513696ac7653449f14b77d2d323ef4d466.zip |
initialize pointers, ok markus@
-rw-r--r-- | usr.bin/ssh/sftp-client.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/sftp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index 67c24b0cdba..4b9358b6bad 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -20,7 +20,7 @@ /* XXX: copy between two remote sites */ #include "includes.h" -RCSID("$OpenBSD: sftp-client.c,v 1.49 2004/05/19 12:17:33 djm Exp $"); +RCSID("$OpenBSD: sftp-client.c,v 1.50 2004/06/03 12:22:20 pedro Exp $"); #include <sys/queue.h> @@ -988,7 +988,7 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, TAILQ_ENTRY(outstanding_ack) tq; }; TAILQ_HEAD(ackhead, outstanding_ack) acks; - struct outstanding_ack *ack; + struct outstanding_ack *ack = NULL; TAILQ_INIT(&acks); diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index 941922bae36..28a11847718 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -16,7 +16,7 @@ #include "includes.h" -RCSID("$OpenBSD: sftp.c,v 1.47 2004/05/26 08:59:57 djm Exp $"); +RCSID("$OpenBSD: sftp.c,v 1.48 2004/06/03 12:22:20 pedro Exp $"); #include <glob.h> @@ -1301,7 +1301,7 @@ int main(int argc, char **argv) { int in, out, ch, err; - char *host, *userhost, *cp, *file2; + char *host, *userhost, *cp, *file2 = NULL; int debug_level = 0, sshver = 2; char *file1 = NULL, *sftp_server = NULL; char *ssh_program = _PATH_SSH_PROGRAM, *sftp_direct = NULL; |