tests: use calloc() where applicable
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 12 Jun 2017 18:44:03 +0000 (20:44 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 12 Jun 2017 18:44:03 +0000 (20:44 +0200)
commitc5f9b72c2f67919a1ebc525bac175e322f805eaa
tree5876dcf5ce30f6b40080ffee51ed01bae4fd8499
parent2003dba66fc8b86ef2a2418f5f60953b43eb5f54
tests: use calloc() where applicable

Introduce xcalloc() and use it whenever we're allocating an array
of elements.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.c