1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Tab-completion for /SCRIPT UNLOAD crashed irssi soon after

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2342 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-01-23 20:36:52 +00:00 committed by cras
parent 46a6cf58f3
commit 16693c461f

View File

@ -201,7 +201,7 @@ static GList *script_complete(const char *name)
PERL_SCRIPT_REC *rec = tmp->data;
if (strncmp(rec->name, name, len) == 0)
list = g_list_append(list, rec->name);
list = g_list_append(list, g_strdup(rec->name));
}
return list;