summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/tilde.c
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-06-29 15:17:01 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-06-29 15:17:01 +0200
commit67771508836edda4bad393f1a00d89cd419e3814 (patch)
treec3d2d1b1efe2de7e702c3d65d8b7bddccbdbd5d0 /cmd-line-utils/readline/tilde.c
parent729648c4b776ec4992f6333f0c70b4b749e8d996 (diff)
downloadmariadb-git-67771508836edda4bad393f1a00d89cd419e3814.tar.gz
Merge from 5.0-bt
Diffstat (limited to 'cmd-line-utils/readline/tilde.c')
-rw-r--r--cmd-line-utils/readline/tilde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-line-utils/readline/tilde.c b/cmd-line-utils/readline/tilde.c
index d50f7a0ffa4..128cc26d9a7 100644
--- a/cmd-line-utils/readline/tilde.c
+++ b/cmd-line-utils/readline/tilde.c
@@ -196,7 +196,7 @@ tilde_expand (string)
int result_size, result_index;
result_index = result_size = 0;
- if (result = strchr (string, '~'))
+ if ((result = strchr (string, '~')))
result = (char *)xmalloc (result_size = (strlen (string) + 16));
else
result = (char *)xmalloc (result_size = (strlen (string) + 1));