diff options
author | pjd <pjd@FreeBSD.org> | 2005-08-19 11:03:49 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-08-19 11:03:49 +0000 |
commit | 341f5fabba6d7e4bd7a1ec83ee34414e567db27b (patch) | |
tree | b00c16864dfdc1b3a926b722ee512dddcebb6c2d /usr.sbin/jls | |
parent | 39d71f22112f7c343b559c900ffd01158abd77d1 (diff) | |
download | FreeBSD-src-341f5fabba6d7e4bd7a1ec83ee34414e567db27b.zip FreeBSD-src-341f5fabba6d7e4bd7a1ec83ee34414e567db27b.tar.gz |
Sync code with the error report: calloc(number, 1) is equivalent to
malloc(number).
Diffstat (limited to 'usr.sbin/jls')
-rw-r--r-- | usr.sbin/jls/jls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/jls/jls.c b/usr.sbin/jls/jls.c index e8446bb..23a3946 100644 --- a/usr.sbin/jls/jls.c +++ b/usr.sbin/jls/jls.c @@ -51,7 +51,7 @@ main(void) for (i = 0; i < 4; i++) { if (len <= 0) exit(0); - sxp = xp = calloc(len, 1); + sxp = xp = malloc(len); if (sxp == NULL) err(1, "malloc()"); |