summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-01-13 09:56:34 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-01-13 09:56:34 +0100
commitb8a42996c106567765896335bec664ecf0d95321 (patch)
treeec2cfe3973a715fcf1241ce892caa48917b145aa
parent0a4e6a1b61741318eeea51782fe7285e56ddf543 (diff)
downloadweechat-b8a42996c106567765896335bec664ecf0d95321.zip
Fix bug with string return value of callbacks in tcl plugin
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl.c2
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;