diff options
author | Werner Koch <[email protected]> | 2015-11-27 17:23:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-11-27 17:32:27 +0000 |
commit | 686f31c3d5aee0d2825265869ae92ca95cdcabae (patch) | |
tree | f0c0357ca47739ec9d57cd9a98125118c8c18688 /g10/t-keydb-get-keyblock.c | |
parent | kbx: Include gpg-error prior to mischelp.h. (diff) | |
download | gnupg-686f31c3d5aee0d2825265869ae92ca95cdcabae.tar.gz gnupg-686f31c3d5aee0d2825265869ae92ca95cdcabae.zip |
gpg: Avoid extra translation strings.
* g10/keyedit.c (menu_expire): Use only one prompt.
--
The old code was anyway not fully i18n because it did not used
ngettext. Further we ran into const char*/char* conflicts on Windows
where we use a different gettext implementation.
FWIW: A better pattern in the case of a static and a malloced string
w/o error return on malloc failure would be:
const char *s;
char *s_buf;
s_buf = xtryasprintf ("%d foo", n);
if (!s_buf)
s = "several foo";
else
s = s_buf;
bar (s);
xfree (s_buf);
Diffstat (limited to 'g10/t-keydb-get-keyblock.c')
0 files changed, 0 insertions, 0 deletions