Fix: return status instead of ret
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 26 Jun 2019 18:48:06 +0000 (14:48 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Jun 2019 04:55:27 +0000 (00:55 -0400)
Commit 9736d991ea189f29b908e9cf18103c1452c59e05 modifies the error
handling of bt_plugin_create_append_all_from_dir but fails to return the
actual status.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I147a212e1556d81a4fe9cbef839cfe65b345195c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1545
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/lib/plugin/plugin.c

index 47b49cf993caf2856a19531a6189f37a0cd94b72..7caf362e0a4f8c2ba6910c8b159244e05fd7dd5c 100644 (file)
@@ -517,7 +517,7 @@ enum bt_plugin_status bt_plugin_create_append_all_from_dir(
        }
 
 end:
-       return ret;
+       return status;
 }
 
 enum bt_plugin_status bt_plugin_find_all_from_dir(const char *path,
This page took 0.02556 seconds and 4 git commands to generate.