iio-osc: fix segfault

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>