Do not use `bool` type; use new `bt_bool` instead
[babeltrace.git] / plugins / lttng-utils / plugin.c
index e7cffbd1c57ff0e019a976fef99ee4ef7f4c7fa9..2578dd967aea0a3264a21682b9b6240b283c8962 100644 (file)
@@ -419,14 +419,17 @@ enum bt_component_status init_from_params(
         value = bt_value_map_get(params, "full-path");
        if (value) {
                enum bt_value_status value_ret;
+               bt_bool bool_val;
 
                value_ret = bt_value_bool_get(value,
-                               &debug_info_component->arg_full_path);
+                               &bool_val);
                if (value_ret) {
                        ret = BT_COMPONENT_STATUS_INVALID;
                        printf_error("Failed to retrieve full-path value. "
                                        "Expecting a boolean");
                }
+
+               debug_info_component->arg_full_path = bool_val;
        }
        bt_put(value);
        if (ret != BT_COMPONENT_STATUS_OK) {
This page took 0.025742 seconds and 4 git commands to generate.