aboutsummaryrefslogtreecommitdiff
path: root/src/target/etm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/etm.c')
-rw-r--r--src/target/etm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/etm.c b/src/target/etm.c
index 8555872..05577ea 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -1808,7 +1808,7 @@ COMMAND_HANDLER(handle_etm_load_command)
fileio_read_u32(file, &etm_ctx->trace_depth);
}
etm_ctx->trace_data = malloc(sizeof(struct etmv1_trace_data) * etm_ctx->trace_depth);
- if (etm_ctx->trace_data == NULL) {
+ if (!etm_ctx->trace_data) {
command_print(CMD, "not enough memory to perform operation");
fileio_close(file);
return ERROR_FAIL;