diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-03-19 22:03:55 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-03-19 22:03:55 +0100 |
commit | 45af721c79dad46ba60e1fc75911ebe7fc1ce25f (patch) | |
tree | 36ab60e20873fc8acec4653a347bc37f0c214448 /libextra | |
parent | 0617580c7ee165ec3a5dbe8fb00df316efc3cee9 (diff) | |
download | gnutls-45af721c79dad46ba60e1fc75911ebe7fc1ce25f.tar.gz |
Fix LZO build failure.
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/gnutls_extra.c | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/libextra/gnutls_extra.c b/libextra/gnutls_extra.c index bf81a501e6..970208e365 100644 --- a/libextra/gnutls_extra.c +++ b/libextra/gnutls_extra.c @@ -116,20 +116,24 @@ gnutls_global_init_extra (void) /* Initialize the LZO library */ #ifdef USE_LZO - if (lzo_init () != LZO_E_OK) - { - return GNUTLS_E_LZO_INIT_FAILED; - } - - /* Add the LZO compression method in the list of compression - * methods. - */ - ret = _gnutls_add_lzo_comp (); - if (ret < 0) - { - gnutls_assert (); - return ret; - } + { + int ret; + + if (lzo_init () != LZO_E_OK) + { + return GNUTLS_E_LZO_INIT_FAILED; + } + + /* Add the LZO compression method in the list of compression + * methods. + */ + ret = _gnutls_add_lzo_comp (); + if (ret < 0) + { + gnutls_assert (); + return ret; + } + } #endif return 0; |