diff options
| author | chenzizhan <[email protected]> | 2024-07-26 17:59:31 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2024-07-26 17:59:31 +0800 |
| commit | 97e8724310c1a0d51600d723c6d3dcb6c4495d5f (patch) | |
| tree | b15ddd24d6b851ccf797a5919df52d7994e4dbc9 /src/fieldstat.c | |
| parent | 1f7bb0b8efc928cb2a5b10940a0f2a2909c76729 (diff) | |
check uninitialized cube in mergerefactor-heavykeeper-newkey
Diffstat (limited to 'src/fieldstat.c')
| -rw-r--r-- | src/fieldstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fieldstat.c b/src/fieldstat.c index 555aa1d..bb530f1 100644 --- a/src/fieldstat.c +++ b/src/fieldstat.c @@ -319,11 +319,12 @@ void fieldstat_field_list_arr_free(struct field_list *field_lists, size_t n_fiel free(field_lists); } +//uninitialized + const char *fieldstat_get_metric_name(const struct fieldstat *instance, int cube_id, int metric_id) { const struct cube *cube = cube_manager_get_cube_by_id(instance->cube_manager, cube_id); if (cube == NULL) { - printf("cube is NULL\n"); return NULL; } return cube_get_metric_name(cube, metric_id); |
