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
This commit is contained in:
Sheldon Hearn 2000-01-20 09:41:31 +00:00
parent 21e10b2d88
commit 248368f60a

View File

@ -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) {