#3851 SBUS: Silence warning maybe-uninitialized
Merged by jhrozek. Opened by lslebodn.
SSSD/ lslebodn/sssd p11_child_uninit  into  master

Download 3851.patch

It should not happen because function sbus_interface_find_property
should return NULL for access different than SBUS_PROPERTY_READABLE
or SBUS_PROPERTY_WRITABLE. And thus we would return ERR_SBUS_UNKNOWN_PROPERTY
from the function sbus_request_property.

src/sbus/interface/sbus_properties.c: In function 'sbus_request_property.isra.0':
src/sbus/interface/sbus_properties.c:360:14:
error: 'type' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
sbus_req = sbus_request_create(mem_ctx, conn, type, destination,
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
interface_name, property_name, path);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

rebased onto c8e9c7677393bfcab10e354cb08c947bbf940142

rebased onto c8e9c7677393bfcab10e354cb08c947bbf940142

Thank you. Ack.

Commit d143319b fixes this pull-request

Pull-Request has been merged by jhrozek

Metadata