From cd4370bd6ed20fd2c944f03206d3cd56023f390f Mon Sep 17 00:00:00 2001 From: vda Date: Wed, 3 Jan 2007 02:56:00 +0000 Subject: convert calloc to xzalloc fix sleep-on-die option git-svn-id: svn://busybox.net/trunk/busybox@17140 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- miscutils/crond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils') diff --git a/miscutils/crond.c b/miscutils/crond.c index fa7964e4e..aace3ee18 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -542,7 +542,7 @@ static void SynchronizeFile(const char *fileName) struct stat sbuf; if (fstat(fileno(fi), &sbuf) == 0 && sbuf.st_uid == DaemonUid) { - CronFile *file = calloc(1, sizeof(CronFile)); + CronFile *file = xzalloc(sizeof(CronFile)); CronLine **pline; file->cf_User = strdup(fileName); @@ -586,7 +586,7 @@ static void SynchronizeFile(const char *fileName) FixDayDow(&line); - *pline = calloc(1, sizeof(CronLine)); + *pline = xzalloc(sizeof(CronLine)); **pline = line; /* copy command */ -- cgit v1.2.3-55-g6feb