mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
46a6cf58f3
commit
16693c461f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user