X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.cpp;h=a8d774a4f0764081e9d3203fd20fd49cea5fbaf8;hp=b51acaf6747169e3f50de35b1d90d514c2932200;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/notification-thread-commands.cpp b/src/bin/lttng-sessiond/notification-thread-commands.cpp index b51acaf67..a8d774a4f 100644 --- a/src/bin/lttng-sessiond/notification-thread-commands.cpp +++ b/src/bin/lttng-sessiond/notification-thread-commands.cpp @@ -452,13 +452,13 @@ end: struct lttng_event_notifier_notification *lttng_event_notifier_notification_create( uint64_t tracer_token, enum lttng_domain_type domain, char *payload, size_t payload_size) { - struct lttng_event_notifier_notification *notification = NULL; + struct lttng_event_notifier_notification *notification = nullptr; LTTNG_ASSERT(domain != LTTNG_DOMAIN_NONE); LTTNG_ASSERT((payload && payload_size) || (!payload && !payload_size)); notification = zmalloc(); - if (notification == NULL) { + if (notification == nullptr) { ERR("Error allocating notification"); goto end; }