Message ID | 20240614155456.092944eb@rorschach.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 021da909bcbf657ceccbc1bcfa34b3d5c029be80 |
Headers | show |
Series | libtraceevent: Do not return a local stack pointer in get_field_str() | expand |
diff --git a/src/parse-filter.c b/src/parse-filter.c index e448ee2b6799..75b84a0cc4ae 100644 --- a/src/parse-filter.c +++ b/src/parse-filter.c @@ -1704,8 +1704,8 @@ static const char *get_field_str(struct tep_filter_arg *arg, struct tep_record * struct tep_handle *tep; unsigned long long addr; const char *val = NULL; + static char hex[64]; unsigned int size; - char hex[64]; /* If the field is not a string convert it */ if (arg->str.field->flags & TEP_FIELD_IS_STRING) {