]> Savannah Git Hosting - gnulib.git/commit
getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Jul 2019 22:47:12 +0000 (00:47 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Jul 2019 22:55:25 +0000 (00:55 +0200)
commitd44241344e8455c59ea04440706cfaf72862c404
tree83ed6bc32a4ab063d7bf6e3f69ab5980979e4717
parentac7390ac0884d155d3adc9d0f992413adcaaff87
getcwd-lgpl, getcwd: Don't call realloc when it is pointless.

* lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
needed size is equal to the allocated size.
* lib/getcwd.c (__getcwd): Likewise.
ChangeLog
lib/getcwd-lgpl.c
lib/getcwd.c