From: Simon Josefsson Date: Tue, 18 Nov 2008 14:37:39 +0000 (+0100) Subject: Clean up LZO initialization. X-Git-Tag: gnutls_2_7_3~42^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e3206f243ef69a3b0fd0c6e2a61aeb394fd3aa5;p=thirdparty%2Fgnutls.git Clean up LZO initialization. --- diff --git a/lib/gnutls_compress.c b/lib/gnutls_compress.c index 6ff1db73f2..c81d065a13 100644 --- a/lib/gnutls_compress.c +++ b/lib/gnutls_compress.c @@ -379,10 +379,8 @@ _gnutls_comp_init (gnutls_compression_method_t method, int d) #endif case GNUTLS_COMP_LZO: #ifdef USE_LZO - if (d) - { /* LZO does not use memory on decompressor *//* ret->handle = NULL; */ - } - else + /* LZO does not use memory on decompressor */ + if (!d) { ret->handle = gnutls_malloc (LZO1X_1_MEM_COMPRESS);