diff options
author | Tomohiro Kusumi <kusumi.tomohiro@gmail.com> | 2018-04-12 01:40:13 +0900 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-04-13 10:14:46 -0700 |
commit | 1a4afa80292534e92ecb4b9f6665d1910d573ca3 (patch) | |
tree | 1b71638229f810b24e997dd6baac243f4e1d7573 | |
parent | e6549557f7bb80fc02537d1935584d3a65faa1f5 (diff) |
Invert calloc(3) argument order (`nmemb` comes first)
No functional difference expected, but should still follow the standard.
http://pubs.opengroup.org/onlinepubs/009695399/functions/calloc.html
-rw-r--r-- | example/passthrough_ll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 7ebf807..4242c86 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -327,7 +327,7 @@ static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, (void) ino; - buf = calloc(size, 1); + buf = calloc(1, size); if (!buf) return (void) fuse_reply_err(req, ENOMEM); |