aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index aaba486..8d34167 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -366,9 +366,10 @@ cd_command (char *dir, int from_tty)
else
{
if (IS_DIR_SEPARATOR (current_directory[strlen (current_directory) - 1]))
- current_directory = concat (current_directory, dir, NULL);
+ current_directory = concat (current_directory, dir, (char *)NULL);
else
- current_directory = concat (current_directory, SLASH_STRING, dir, NULL);
+ current_directory = concat (current_directory, SLASH_STRING,
+ dir, (char *)NULL);
xfree (dir);
}