mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 18:52:35 +02:00
next set of documentation updates (word splitting), rearrange a test in readline's tilde expansion to avoid touching uninitialized data
This commit is contained in:
+2
-2
@@ -205,9 +205,9 @@ rl_tilde_expand (int ignore, int key)
|
||||
end = start;
|
||||
do
|
||||
end++;
|
||||
while (whitespace (rl_line_buffer[end]) == 0 && end < rl_end);
|
||||
while (end < rl_end && whitespace (rl_line_buffer[end]) == 0);
|
||||
|
||||
if (whitespace (rl_line_buffer[end]) || end >= rl_end)
|
||||
if (end >= rl_end || whitespace (rl_line_buffer[end]))
|
||||
end--;
|
||||
|
||||
/* If the first character of the current word is a tilde, perform
|
||||
|
||||
Reference in New Issue
Block a user