diff options
Diffstat (limited to 'g10/encode.c')
-rw-r--r-- | g10/encode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/encode.c b/g10/encode.c index 89093df01..3a90c3712 100644 --- a/g10/encode.c +++ b/g10/encode.c @@ -397,7 +397,11 @@ encode_crypt( const char *filename, STRLIST remusr ) ; /* don't use compression */ else { if( compr_algo == 1 ) - zfx.algo = 1; /* default is 2 */ + zfx.algo = 1; + if( compr_algo == 2 ) + zfx.algo = 2; + /* Any other compr_algo will fall back to + opt.def_compress_algo in the compress_filter. */ iobuf_push_filter( out, compress_filter, &zfx ); } } |