projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: lttng: remove unused 'session_name' variable
[lttng-tools.git]
/
src
/
bin
/
lttng
/
conf.cpp
diff --git
a/src/bin/lttng/conf.cpp
b/src/bin/lttng/conf.cpp
index 4e22ca005c3202917c9f3dbb04a65df1ea7d3d28..33550eb3778fe5fb636c0700618b153804f84057 100644
(file)
--- a/
src/bin/lttng/conf.cpp
+++ b/
src/bin/lttng/conf.cpp
@@
-14,11
+14,11
@@
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
-#include <common/compat/errno.h>
-#include <common/common.h>
-#include <common/utils.h>
+#include <common/compat/errno.h
pp
>
+#include <common/common.h
pp
>
+#include <common/utils.h
pp
>
-#include "conf.h"
+#include "conf.h
pp
"
/*
* Returns the path with '/CONFIG_FILENAME' added to it;
/*
* Returns the path with '/CONFIG_FILENAME' added to it;
@@
-178,7
+178,7
@@
int _config_read_session_name(const char *path, char **name)
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
- session_name =
(char *) zmalloc
(NAME_MAX);
+ session_name =
calloc<char>
(NAME_MAX);
if (session_name == NULL) {
ret = -ENOMEM;
ERR("Out of memory");
if (session_name == NULL) {
ret = -ENOMEM;
ERR("Out of memory");
This page took
0.02425 seconds
and
4
git commands to generate.