projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cppcheck: Simplify empty string test without using strlen()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-kernel.c
diff --git
a/src/bin/lttng-sessiond/trace-kernel.c
b/src/bin/lttng-sessiond/trace-kernel.c
index d3742be16e944c55adac4ab339bb021854b5ef96..53053f2067c6a8b20cc92f0b6a3019fb360c473b 100644
(file)
--- a/
src/bin/lttng-sessiond/trace-kernel.c
+++ b/
src/bin/lttng-sessiond/trace-kernel.c
@@
-109,7
+109,7
@@
struct ltt_kernel_session *trace_kernel_create_session(char *path)
*/
lks->tmp_consumer = NULL;
*/
lks->tmp_consumer = NULL;
- if (
path && strlen(path) > 0
) {
+ if (
*path != '\0'
) {
int ret;
/* Use the default consumer output which is the tracing session path. */
int ret;
/* Use the default consumer output which is the tracing session path. */
This page took
0.026921 seconds
and
4
git commands to generate.