> When iio_get_acpi_device_name_and_data() fails, the ddata may be left > uninitialised. Initialise it to NULL. How do you think about to perform the variable assignment only in a corresponding else branch? Can it be that this adjustment does not really matter here because of the following statement? if (!name) return -ENODEV; Regards, Markus