Carl Shapiro pushed to branch master at cmucl / cmucl
Commits:
-
729fae26
by Carl Shapiro at 2024-04-25T01:15:17-07:00
-
7c91087e
by Carl Shapiro at 2024-04-25T16:37:26+00:00
1 changed file:
Changes:
... | ... | @@ -762,10 +762,10 @@ os_file_author(const char *path) |
762 | 762 | case ERANGE:
|
763 | 763 | /* Buffer is too small, double its size and try again */
|
764 | 764 | size *= 2;
|
765 | - obuffer = (buffer == initial) ? NULL : buffer;
|
|
766 | 765 | if ((buffer = realloc(obuffer, size)) == NULL) {
|
767 | 766 | goto exit;
|
768 | 767 | }
|
768 | + obuffer = buffer;
|
|
769 | 769 | continue;
|
770 | 770 | default:
|
771 | 771 | /* All other errors */
|