summaryrefslogtreecommitdiff
path: root/src/core/wee-eval.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-03-10 20:19:24 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-10 20:19:24 +0100
commitf604cf19c7dbfb966952a11ee8f15ab11ed40ae3 (patch)
tree32a3ef4205cd9b4c7314ed265b58cda44179a175 /src/core/wee-eval.c
parente3f588679ce7b3f911502bef1685e65b12ad212e (diff)
downloadweechat-f604cf19c7dbfb966952a11ee8f15ab11ed40ae3.zip
core: rename variable open_paren to pos_open_paren
Diffstat (limited to 'src/core/wee-eval.c')
-rw-r--r--src/core/wee-eval.c11
1 files changed, 7 insertions, 4 deletions
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;