about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 7892e78a..c9110e4b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -453,7 +453,7 @@ cmd_init(void)
         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();
 }