ret = xmlTextWriterStartElement(writer->writer, encoded_element_name);
xmlFree(encoded_element_name);
end:
- return ret > 0 ? 0 : ret;
+ return ret >= 0 ? 0 : ret;
}
LTTNG_HIDDEN
ret = xmlTextWriterEndElement(writer->writer);
end:
- return ret > 0 ? 0 : ret;
+ return ret >= 0 ? 0 : ret;
}
LTTNG_HIDDEN
encoded_element_name, "%" PRIu64, value);
xmlFree(encoded_element_name);
end:
- return ret > 0 ? 0 : ret;
+ return ret >= 0 ? 0 : ret;
}
LTTNG_HIDDEN
encoded_element_name, "%" PRIi64, value);
xmlFree(encoded_element_name);
end:
- return ret > 0 ? 0 : ret;
+ return ret >= 0 ? 0 : ret;
}
LTTNG_HIDDEN
end:
xmlFree(encoded_element_name);
xmlFree(encoded_value);
- return ret > 0 ? 0 : ret;
+ return ret >= 0 ? 0 : ret;
}
static