Skip to content

Commit 3a70a72

Browse files
author
Paul Wood
committed
add nullptr check
1 parent 78719e4 commit 3a70a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/ocp/ocp-telemetry-decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ int get_telemetry_das_offset_and_size(
491491

492492
int get_statistic_id_ascii_string(int identifier, char *description)
493493
{
494-
if (pstring_buffer == NULL)
494+
if (!pstring_buffer || !description)
495495
return -1;
496496

497497
struct nvme_ocp_telemetry_string_header *pocp_ts_header =

0 commit comments

Comments
 (0)