Print this page
10476 file(1) could be smatch clean
*** 27,38 ****
/* All Rights Reserved */
/* Copyright (c) 1987, 1988 Microsoft Corporation */
/* All Rights Reserved */
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
--- 27,36 ----
*** 241,251 ****
ep = ep2;
}
/* mtab may have been allocated on a previous f_mkmtab call */
if (mtab == (Entry *)NULL) {
! if ((mtab = calloc(sizeof (Entry), NENT)) == NULL) {
int err = errno;
(void) fprintf(stderr, gettext("%s: malloc "
"failed: %s\n"), File, strerror(err));
return (-1);
}
--- 239,249 ----
ep = ep2;
}
/* mtab may have been allocated on a previous f_mkmtab call */
if (mtab == (Entry *)NULL) {
! if ((mtab = calloc(NENT, sizeof (Entry))) == NULL) {
int err = errno;
(void) fprintf(stderr, gettext("%s: malloc "
"failed: %s\n"), File, strerror(err));
return (-1);
}