From f604cf19c7dbfb966952a11ee8f15ab11ed40ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 10 Mar 2023 20:19:24 +0100 Subject: core: rename variable open_paren to pos_open_paren --- src/core/wee-eval.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/core/wee-eval.c') diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c index 5bfd4a166..b828a972d 100644 --- a/src/core/wee-eval.c +++ b/src/core/wee-eval.c @@ -1168,7 +1168,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path, struct t_eval_context *eval_context) { char *value, *old_value, *var_name, str_value[128], *pos, *property; - const char *ptr_value, *hdata_name, *ptr_var_name, *open_paren; + const char *ptr_value, *hdata_name, *ptr_var_name, *pos_open_paren; int type, debug_id; struct t_hashtable *hashtable; @@ -1264,10 +1264,13 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path, */ hashtable = pointer; - open_paren = strchr (pos, '('); - if (open_paren && open_paren > (pos + 1) && open_paren[1] == ')') + pos_open_paren = strchr (pos, '('); + if (pos_open_paren + && (pos_open_paren > pos + 1) + && (pos_open_paren[1] == ')')) { - property = string_strndup (pos + 1, open_paren - pos - 1); + property = string_strndup (pos + 1, + pos_open_paren - pos - 1); ptr_value = hashtable_get_string (hashtable, property); free (property); value = (ptr_value) ? strdup (ptr_value) : NULL; -- cgit v1.2.3