assert(output);
+ DBG2("Snapshot output initializing with max size %" PRIu64 ", name %s "
+ "ctrl URL %s, data URL %s", max_size, name, ctrl_url, data_url);
+
output->max_size = max_size;
if (snapshot) {
output->id = get_next_output_id(snapshot);
}
lttng_ht_node_init_ulong(&output->node, (unsigned long) output->id);
- if (name) {
+ if (name && name[0] != '\0') {
strncpy(output->name, name, sizeof(output->name));
} else {
/* Set default name. */