1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

scripts: do not allocate memory when converting pointers to strings

This commit is contained in:
Sébastien Helleu
2018-04-10 19:33:14 +02:00
parent c89035327c
commit ab61ddd4ab
12 changed files with 2146 additions and 2532 deletions
+2 -2
View File
@@ -487,11 +487,11 @@ weechat_php_func_map_get (const char* func_name)
return weechat_hashtable_get (weechat_php_func_map, func_name);
}
char *
const char *
weechat_php_func_map_add (zval *ofunc)
{
zval *func;
char *func_name;
const char *func_name;
if (!weechat_php_func_map)
{