diff options
| author | info@mobile-stream.com | 2019-03-06 16:28:48 +0300 |
|---|---|---|
| committer | sin | 2019-03-07 00:05:30 +0000 |
| commit | ff82ffbc74d82091527449e31fe351d15830f716 (patch) | |
| tree | 0ccbcea941cf0febdc42fd043a0ced50082b2eae /tests/test_memset_dynamic_write.c | |
| parent | 1435d8186b1954de640ec79717c5e564243bd350 (diff) | |
realpath: guard slow/trap path with PATH_MAX
This allows the compiler to optimize out the slow/trap path at all
for the typical correct code:
char buf[PATH_MAX];
r = realpath(path, buf);
The change keeps the "unknown object size" case handling intact.
Diffstat (limited to 'tests/test_memset_dynamic_write.c')
0 files changed, 0 insertions, 0 deletions
