diff options
author | Alison Schofield <[email protected]> | 2016-07-26 20:17:43 -0700 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2016-08-15 17:05:30 +0100 |
commit | ddbc719f99cf9aed6918cef98cb3475fd4fc4fa6 (patch) | |
tree | 70a3b81e810ada06a5426e0d3e8a17918b28c255 /tools/perf/util/trace-event-scripting.c | |
parent | 0d9dcf852334b796bacc7020364afba3122db81e (diff) |
tools: iio: iio_generic_buffer: initialize channel array pointer
Uninitialized channel pointer causes segmentation fault when we
call free(channel) during cleanup() with no channels initialized.
This happens when you exit early for usage errors. Initialize
the pointer to NULL when it is declared.
Signed-off-by: Alison Schofield <[email protected]>
Cc: Daniel Baluta <[email protected]>
Tested-by: Gregor Boirie <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions