Skip to content

Commit fc49951

Browse files
committed
examples/mi-conf: Initialise sd_bus_error
The sd_bus methods may return EINVAL if err is not initialised to NULL. Signed-off-by: Jeremy Kerr <[email protected]>
1 parent b483bbd commit fc49951

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/mi-conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ int find_port(nvme_mi_ep_t ep, uint8_t *portp, uint16_t *mtup)
8181

8282
int set_local_mtu(sd_bus *bus, unsigned int net, uint8_t eid, uint32_t mtu)
8383
{
84+
sd_bus_error err = SD_BUS_ERROR_NULL;
8485
sd_bus_message *resp;
85-
sd_bus_error err;
8686
char *ep_path;
8787
int rc;
8888

0 commit comments

Comments
 (0)