]> Savannah Git Hosting - gnulib.git/commit
argp: avoid extraneous translation and mem leak with empty pre doc
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 2 Dec 2014 16:05:10 +0000 (16:05 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 2 Dec 2014 16:31:34 +0000 (16:31 +0000)
commita545b5e44bff6e3dca75bc223a8edd885fc964f8
tree98091b1a51cbdd35a610289dc8a51ea672e0f846
parent1b6c775c6b9c8054afcadc0aeb0ae39e81dc6387
argp: avoid extraneous translation and mem leak with empty pre doc

* lib/argp-help.c (argp_doc): Never translate the empty string,
when "\v" is the first or last character of the string, as that
has a reserved meaning to return the header info from a po file.
This also fixes a small memory leak in the !post case.
The issue can be seen with this command for example:
LC_MESSAGES=en_US grub2-mknetdir --help
ChangeLog
lib/argp-help.c