Replace xmalloc() with xcalloc().
---------------------------- adapted for newlib branch
. trade xcalloc() for calloc()
. thus we must account for potential ENOMEM
Signed-off-by: Jim Warner <james.warner@comcast.net>
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
+#include <stdint.h>
#ifdef WITH_SYSTEMD
#include <systemd/sd-login.h>
#endif
va_list ap;
struct stat sbuf;
static int did_stat;
- PROCTAB* PT = malloc(sizeof(PROCTAB));
+ PROCTAB* PT = calloc(1, sizeof(PROCTAB));
if (!PT)
return NULL;