1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Fix bug with string return value of callbacks in tcl plugin

This commit is contained in:
Sebastien Helleu
2010-01-13 09:56:34 +01:00
parent 0a4e6a1b61
commit b8a42996c1
+1 -1
View File
@@ -116,7 +116,7 @@ weechat_tcl_exec (struct t_plugin_script *script,
if (ret_type == WEECHAT_SCRIPT_EXEC_STRING)
{
ret_cv = Tcl_GetStringFromObj (Tcl_GetObjResult (interp), &i);
if (ret_cv && ret_cv[0])
if (ret_cv)
ret_val = (void *)strdup (ret_cv);
else
ret_val = NULL;