diff --git a/src/iface/service-link.c b/src/iface/service-link.c index c1627a0f..4109ce67 100644 --- a/src/iface/service-link.c +++ b/src/iface/service-link.c @@ -146,7 +146,7 @@ static const char *_get_arg_value(const char *str, const char *key_eq, size_t *s if (!strncmp(key_eq, str, strlen(key_eq))) { /* get the value and its size */ str += strlen(key_eq); - *size = line_end - str; + *size = line_end - str; return str; } } diff --git a/src/resource/ubridge.c b/src/resource/ubridge.c index 276ca46b..de71471f 100644 --- a/src/resource/ubridge.c +++ b/src/resource/ubridge.c @@ -3670,10 +3670,10 @@ static int _refresh_device_disk_hierarchy_from_sysfs(sid_resource_t *cmd_res) if (!(vec_buf = sid_buffer_create(&((struct sid_buffer_spec) {.backend = SID_BUFFER_BACKEND_MALLOC, .type = SID_BUFFER_TYPE_VECTOR, .mode = SID_BUFFER_MODE_PLAIN}), - &((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0), + &((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0), .alloc_step = 1, .limit = 0}), - &r))) { + &r))) { log_error_errno(ID(cmd_res), r, "Failed to create buffer to record hierarchy for device " CMD_DEV_NAME_NUM_FMT,