X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbytecode%2Fbytecode.cpp;h=c32f3900b8d4332d32e0a9eb5b771dc40b82fe85;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=6100892b718554c762a5a398c4431f6cc682bde5;hpb=c922647daed3dd022be11980063b5fb816d8c091;p=lttng-tools.git diff --git a/src/common/bytecode/bytecode.cpp b/src/common/bytecode/bytecode.cpp index 6100892b7..c32f3900b 100644 --- a/src/common/bytecode/bytecode.cpp +++ b/src/common/bytecode/bytecode.cpp @@ -5,12 +5,12 @@ * */ -#include "bytecode.h" +#include "bytecode.hpp" #include #include -#include "common/align.h" +#include "common/align.hpp" #define INIT_ALLOC_SIZE 4 @@ -251,9 +251,8 @@ end: struct lttng_bytecode *lttng_bytecode_copy( const struct lttng_bytecode *orig_f) { - struct lttng_bytecode *bytecode = NULL; - - bytecode = (lttng_bytecode *) zmalloc(sizeof(*bytecode) + orig_f->len); + lttng_bytecode *bytecode + = zmalloc(sizeof(*bytecode) + orig_f->len); if (!bytecode) { goto error; }