X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-provider.c;h=edb1e9b2e076a4297653b010b87978e5eb67c07d;hb=b4051ad8c170901d5297e1b3005b24e63cb0ab1e;hp=8e065abe3eb0c650b44fa6c507f26831591c119a;hpb=c362addf1c50e1d3202a26ff96738b71b4f9a531;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-provider.c b/liblttng-ust/lttng-context-provider.c index 8e065abe..edb1e9b2 100644 --- a/liblttng-ust/lttng-context-provider.c +++ b/liblttng-ust/lttng-context-provider.c @@ -21,6 +21,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -71,9 +72,9 @@ int lttng_ust_context_provider_register(struct lttng_ust_context_provider *provi lttng_ust_fixup_tls(); /* Provider name starts with "$app.". */ - if (strncmp("$app.", provider->name, strlen("$app.") != 0)) + if (strncmp("$app.", provider->name, strlen("$app.")) != 0) return -EINVAL; - /* Provider name cannot contain a column character. */ + /* Provider name cannot contain a colon character. */ if (strchr(provider->name, ':')) return -EINVAL; if (ust_lock()) {