summaryrefslogtreecommitdiff
path: root/src/plugins/tcl/weechat-tcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tcl/weechat-tcl.c')
-rw-r--r--src/plugins/tcl/weechat-tcl.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index b08831e60..d0b557c26 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -145,11 +145,8 @@ weechat_tcl_dict_to_hashtable (Tcl_Interp *interp, Tcl_Obj *dict,
Tcl_Obj *key, *value;
int done;
- hashtable = weechat_hashtable_new (size,
- type_keys,
- type_values,
- NULL,
- NULL);
+ hashtable = weechat_hashtable_new (size, type_keys, type_values,
+ NULL, NULL);
if (!hashtable)
return NULL;
@@ -167,13 +164,15 @@ weechat_tcl_dict_to_hashtable (Tcl_Interp *interp, Tcl_Obj *dict,
{
weechat_hashtable_set (hashtable,
Tcl_GetString (key),
- plugin_script_str2ptr (weechat_tcl_plugin,
- NULL, NULL,
- Tcl_GetString (value)));
+ plugin_script_str2ptr (
+ weechat_tcl_plugin,
+ NULL, NULL,
+ Tcl_GetString (value)));
}
}
}
- Tcl_DictObjDone(&search);
+
+ Tcl_DictObjDone (&search);
return hashtable;
}