1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

core: remove unused variable "index" in function eval_hdata_get_value

This commit is contained in:
Sébastien Helleu
2017-05-28 08:25:41 +02:00
parent b53741e8f4
commit a0f1f3fd68
+2 -2
View File
@@ -148,7 +148,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
{
char *value, *old_value, *var_name, str_value[128], *pos;
const char *ptr_value, *hdata_name, *ptr_var_name;
int type, index;
int type;
struct t_hashtable *hashtable;
value = NULL;
@@ -180,7 +180,7 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path)
goto end;
/* search type of variable in hdata */
hdata_get_index_and_name (var_name, &index, &ptr_var_name);
hdata_get_index_and_name (var_name, NULL, &ptr_var_name);
type = hdata_get_var_type (hdata, ptr_var_name);
if (type < 0)
goto end;