diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-13 09:56:34 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-13 09:56:34 +0100 |
commit | b8a42996c106567765896335bec664ecf0d95321 (patch) | |
tree | ec2cfe3973a715fcf1241ce892caa48917b145aa /src/plugins/scripts/tcl | |
parent | 0a4e6a1b61741318eeea51782fe7285e56ddf543 (diff) | |
download | weechat-b8a42996c106567765896335bec664ecf0d95321.zip |
Fix bug with string return value of callbacks in tcl plugin
Diffstat (limited to 'src/plugins/scripts/tcl')
-rw-r--r-- | src/plugins/scripts/tcl/weechat-tcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl.c b/src/plugins/scripts/tcl/weechat-tcl.c index bff1ba594..61d08bb8c 100644 --- a/src/plugins/scripts/tcl/weechat-tcl.c +++ b/src/plugins/scripts/tcl/weechat-tcl.c @@ -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; |