about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorKristofer M White <me@kmwhite.net>2014-03-05 17:25:26 +0000
committerKristofer M White <me@kmwhite.net>2014-03-05 17:25:26 +0000
commita4e28097560676f22fa7fdd8769faf93b3c15189 (patch)
tree57002e24ac1521ec299a34f25ac6aa2596a36e47 /src/command/commands.c
parent28425060bc5a759dead356e3ef49fc80a8c270d8 (diff)
downloadprofani-tty-a4e28097560676f22fa7fdd8769faf93b3c15189.tar.gz
Removing strdup calls per cmd_connect design
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 2515a5bd..ee065bcf 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1623,9 +1623,9 @@ cmd_join(gchar **args, struct cmd_help_t help)
                 return TRUE;
             }
             if (strcmp(opt1, "nick") == 0) {
-                nick = strdup(opt1val);
+                nick = opt1val;
             } else if (strcmp(opt1, "passwd") == 0) {
-                passwd = strdup(opt1val);
+                passwd = opt1val;
             } else {
                 cons_show("Usage: %s", help.usage);
                 cons_show("");
@@ -1633,9 +1633,9 @@ cmd_join(gchar **args, struct cmd_help_t help)
             }
             if (opt2 != NULL) {
                 if (strcmp(opt2, "nick") == 0) {
-                    nick = strdup(opt2val);
+                    nick = opt2val;
                 } else if (strcmp(opt2, "passwd") == 0) {
-                    passwd = strdup(opt2val);
+                    passwd = opt2val;
                 } else {
                     cons_show("Usage: %s", help.usage);
                     cons_show("");