Commit f915a28d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
No related merge requests found
Showing with 1 addition and 2 deletions
+1 -2
...@@ -3191,8 +3191,7 @@ void load_poshistory(void) ...@@ -3191,8 +3191,7 @@ void load_poshistory(void)
/* Read and parse each line, and store the extracted data. */ /* Read and parse each line, and store the extracted data. */
while ((read = getline(&line, &buf_len, hist)) > 2) { while ((read = getline(&line, &buf_len, hist)) > 2) {
if (line[read - 1] == '\n') /* Decode nulls as newlines. */
line[--read] = '\0';
unsunder(line, read); unsunder(line, read);
lineptr = parse_next_word(line); lineptr = parse_next_word(line);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment