* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <string.h>
*/
struct lttng_snapshot_output *lttng_snapshot_output_create(void)
{
- return zmalloc(sizeof(struct lttng_snapshot_output));
+ struct lttng_snapshot_output *output;
+
+ output = zmalloc(sizeof(struct lttng_snapshot_output));
+ if (!output) {
+ goto error;
+ }
+
+ output->max_size = (uint64_t) -1ULL;
+
+error:
+ return output;
}
/*