diff options
Diffstat (limited to 'readline/tilde.c')
-rw-r--r-- | readline/tilde.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/readline/tilde.c b/readline/tilde.c index d1853bd63d6..65a1e2f3902 100644 --- a/readline/tilde.c +++ b/readline/tilde.c @@ -182,7 +182,7 @@ tilde_expand (string) int result_size, result_index; result_index = result_size = 0; - if (result = strchr (string, '~')) + if ((result = strchr (string, '~'))) result = xmalloc (result_size = (strlen (string) + 16)); else result = xmalloc (result_size = (strlen (string) + 1)); |