tweaks: don't bother trimming the final newline from a position item

It is irrelevant -- the line is discarded as soon as the data has been
extracted.
master
Benno Schulenberg 2016-12-18 16:44:39 +01:00
parent cb3fc8892a
commit f915a28d30
1 changed files with 1 additions and 2 deletions

View File

@ -3191,8 +3191,7 @@ void load_poshistory(void)
/* Read and parse each line, and store the extracted data. */
while ((read = getline(&line, &buf_len, hist)) > 2) {
if (line[read - 1] == '\n')
line[--read] = '\0';
/* Decode nulls as newlines. */
unsunder(line, read);
lineptr = parse_next_word(line);