1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Allocate memory for additional /who completion

This commit is contained in:
James Booth 2012-10-28 18:01:13 +00:00
parent cd56134ebb
commit 0e9451f5e8

View File

@ -442,7 +442,7 @@ cmd_init(void)
p_autocomplete_add(who_ac, (gchar *)strdup(pcmd->cmd+1)); p_autocomplete_add(who_ac, (gchar *)strdup(pcmd->cmd+1));
} }
p_autocomplete_add(who_ac, "offline"); p_autocomplete_add(who_ac, strdup("offline"));
history_init(); history_init();
} }