X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbytecode%2Fbytecode.cpp;h=c32f3900b8d4332d32e0a9eb5b771dc40b82fe85;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=707394229e947cad92d4dfa0a542d62762ceaa71;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/common/bytecode/bytecode.cpp b/src/common/bytecode/bytecode.cpp index 707394229..c32f3900b 100644 --- a/src/common/bytecode/bytecode.cpp +++ b/src/common/bytecode/bytecode.cpp @@ -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; }