diff options
author | djm <djm> | 2009-02-14 05:26:19 +0000 |
---|---|---|
committer | djm <djm> | 2009-02-14 05:26:19 +0000 |
commit | 982555fb9205886ebe17d7145214d54360dbb721 (patch) | |
tree | d04d9431c6c1f02150d1eb5a424e071ef117671b /sftp.c | |
parent | 0e51efc0c05abd267aa5835c8afc089efb0a9ad6 (diff) | |
download | openssh-982555fb9205886ebe17d7145214d54360dbb721.tar.gz |
- dtucker@cvs.openbsd.org 2009/02/02 11:15:14
[sftp.c]
Initialize a few variables to prevent spurious "may be used
uninitialized" warnings from newer gcc's. ok djm@
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.106 2008/12/09 15:35:00 sobrado Exp $ */ +/* $OpenBSD: sftp.c,v 1.107 2009/02/02 11:15:14 dtucker Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> * @@ -1235,8 +1235,8 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, int err_abort) { char *path1, *path2, *tmp; - int pflag, lflag, iflag, hflag, cmdnum, i; - unsigned long n_arg; + int pflag = 0, lflag = 0, iflag = 0, hflag = 0, cmdnum, i; + unsigned long n_arg = 0; Attrib a, *aa; char path_buf[MAXPATHLEN]; int err = 0; |