diff options
author | millert <millert@openbsd.org> | 2015-11-08 14:40:23 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2015-11-08 14:40:23 +0000 |
commit | 2d5d0d188da815834b6c24319542ae030bc43a69 (patch) | |
tree | 96f768255809a6a705cad260c694b18f34b75fd3 /usr.sbin/cron/entry.c | |
parent | inet(4), not inet(3); (diff) | |
download | wireguard-openbsd-2d5d0d188da815834b6c24319542ae030bc43a69.tar.xz wireguard-openbsd-2d5d0d188da815834b6c24319542ae030bc43a69.zip |
Quiet silly clang analyzer warning in calloc() usage.
Diffstat (limited to 'usr.sbin/cron/entry.c')
-rw-r--r-- | usr.sbin/cron/entry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c index 1a0592bc338..927793cb740 100644 --- a/usr.sbin/cron/entry.c +++ b/usr.sbin/cron/entry.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entry.c,v 1.45 2015/11/04 20:28:17 millert Exp $ */ +/* $OpenBSD: entry.c,v 1.46 2015/11/08 14:40:23 millert Exp $ */ /* * Copyright 1988,1990,1993,1994 by Paul Vixie @@ -117,7 +117,7 @@ load_entry(FILE *file, void (*error_func)(const char *), struct passwd *pw, * of a list of minutes. */ - e = calloc(sizeof(entry), sizeof(char)); + e = calloc(sizeof(entry), 1); if (e == NULL) { ecode = e_memory; goto eof; |