summaryrefslogtreecommitdiff
path: root/readline/tilde.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/tilde.c')
-rw-r--r--readline/tilde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/readline/tilde.c b/readline/tilde.c
index 11209903cf8..fab4aab65ad 100644
--- a/readline/tilde.c
+++ b/readline/tilde.c
@@ -190,7 +190,7 @@ tilde_expand (string)
int result_size, result_index;
result_index = result_size = 0;
- if ((result = (char*)strchr(string, '~')))
+ if ((result = strchr(string, '~')))
result = (char *)xmalloc (result_size = (strlen (string) + 16));
else
result = (char *)xmalloc (result_size = (strlen (string) + 1));