diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-01-20 09:41:31 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-01-20 09:41:31 +0000 |
commit | 319dab65f100b61a1b10b8d5cc8716f9e047a1cb (patch) | |
tree | 3f9e5ffcc1262d7868d7f36a85120a5a0d9e23f0 /usr.bin | |
parent | b149cc0a07f1fa13a01549d95890ac791115fe66 (diff) | |
download | FreeBSD-src-319dab65f100b61a1b10b8d5cc8716f9e047a1cb.zip FreeBSD-src-319dab65f100b61a1b10b8d5cc8716f9e047a1cb.tar.gz |
Revert the change from memset() to bzero(), since bzero() is simply
a special case of memset and we already initialize all those
members of the struct tm which are required by mktime().
The memset() is only necessary for style conformity with the rest
of the file. :-)
Scenic route tour by: bde
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index 1381f2e..a34ca34 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -528,7 +528,6 @@ remotemodtime(file, noisy) * characters. */ if (sscanf(reply_string, "%*s %16s", mtbuf) == 1) { - bzero(&timebuf, sizeof(timebuf)); fmt = NULL; len = strlen(mtbuf); y2kbug = 0; @@ -538,6 +537,7 @@ remotemodtime(file, noisy) } else if (len == 14) fmt = "%04d%02d%02d%02d%02d%02d"; if (fmt != NULL) + memset(&timebuf, 0, sizeof(timebuf)); if (sscanf(mtbuf, fmt, &year, &month, &timebuf.tm_mday, &timebuf.tm_hour, &timebuf.tm_min, &timebuf.tm_sec) == 6) { |