Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: catch calloc memory failures in iio_stresstest
On error, calloc() returns NULL. Or a successful call to calloc() with nmemb or size equal to zero. In the past, we would not catch that, and just start operating on the null pointer (crashing). So catch that, and gracefully error out. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information