Clean-up: lttngctl: copy string using strdup instead of asprintf
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 2 Nov 2021 19:35:27 +0000 (15:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 2 Nov 2021 19:35:32 +0000 (15:35 -0400)
commite32a3d0f431b41123e001abcbce329da6532f903
treeafd663526ca35a01008ead6e026f447b0ff21655
parent76da29b633da92c9a4e0d32e67982c4608039377
Clean-up: lttngctl: copy string using strdup instead of asprintf

Use strdup to copy a string instead of using the formatting utilities.
The code of the function is also adapted to follow the coding standards.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I13328737e42a0287a7402761f75c67eef0dbdfdd
src/lib/lttng-ctl/lttng-ctl.c
This page took 0.02551 seconds and 4 git commands to generate.