diff options
author | Daniel Kahn Gillmor <[email protected]> | 2016-11-10 23:47:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-11-11 14:14:32 +0000 |
commit | da035768bd9a880becee5d0d553dfe12299f96eb (patch) | |
tree | e5e40cc9d1c167941009a3b576d3c4e4aaabeca5 /src/error.c | |
parent | doc: Fix regression in macro handling (diff) | |
download | gpgme-da035768bd9a880becee5d0d553dfe12299f96eb.tar.gz gpgme-da035768bd9a880becee5d0d553dfe12299f96eb.zip |
core: Non-zero values should set _armor, _textmode, and _online.
* src/gpgme.c (gpgme_set_armor, gpgme_set_textmode,
gpgme_set_offline): Ensure that non-zero values actually set the
appropriate internal bit.
--
The documentation for these functions says things like "disabled if
YES is zero, and enabled otherwise", where YES is an integer.
However, if you pass an even integer, it will be aliased back to 0
because the context member variables are declared as single bits.
This should make the implementation match the documentation.
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
Diffstat (limited to 'src/error.c')
0 files changed, 0 insertions, 0 deletions