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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user