On Tue, Nov 01, 2005 at 12:33:46AM +0100, Kurt Roeckx wrote:
> Hi,
> 
> I've attached a patch that seems to be fixing it.  However, I
> have no idea if this is the proper way to fix this.  Someone care
> to comment on it?

And now I really attached the patch.


Kurt

--- c_zlib.c.old        2005-10-31 23:58:46.000000000 +0100
+++ c_zlib.c    2005-11-01 00:02:00.000000000 +0100
@@ -398,11 +398,17 @@
                                = (deflateInit__ft) DSO_bind_func(zlib_dso,
                                        "deflateInit_");
                        zlib_loaded++;
+                       meth = &zlib_stateful_method;
+                       }
+               else
+                       {
+                               /* Failed to load zlib,
+                                  keep zlib_method_nozlib. */
+                               ERR_clear_error();
                        }
                }
 
-#endif
-#if defined(ZLIB) || defined(ZLIB_SHARED)
+#elif defined(ZLIB)
        meth = &zlib_stateful_method;
 #endif
 

Reply via email to