aboutsummaryrefslogtreecommitdiffstats
path: root/src/decompress.c
diff options
context:
space:
mode:
authorEli Zaretskii2014-10-07 20:18:07 +0300
committerEli Zaretskii2014-10-07 20:18:07 +0300
commit8ca8fde8a2f94e9446efc5aa68020c0badeecb4d (patch)
tree683b09b987096c460f324a7603ecccbe8a219f3c /src/decompress.c
parent5bdd495965548f6b754f204080f4f1e6bec622ed (diff)
downloademacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.tar.gz
emacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.zip
Fix bug #18650 with warning about zlib when loading url-vars.el.
src/decompress.c (init_zlib_functions): Move the message about zlib being unavailable from here... (Fzlib_decompress_region): ...to here. lisp/url/url-http.el (url-http-create-request): Recheck zlib availability on windows-nt each time it might be required.
Diffstat (limited to 'src/decompress.c')
-rw-r--r--src/decompress.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decompress.c b/src/decompress.c
index cd8a3d1e962..24ce852245c 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -60,10 +60,7 @@ init_zlib_functions (void)
60 HMODULE library = w32_delayed_load (Qzlib_dll); 60 HMODULE library = w32_delayed_load (Qzlib_dll);
61 61
62 if (!library) 62 if (!library)
63 { 63 return false;
64 message1 ("zlib library not found");
65 return false;
66 }
67 64
68 LOAD_ZLIB_FN (library, inflateInit2_); 65 LOAD_ZLIB_FN (library, inflateInit2_);
69 LOAD_ZLIB_FN (library, inflate); 66 LOAD_ZLIB_FN (library, inflate);
@@ -150,7 +147,10 @@ This function can be called only in unibyte buffers. */)
150 if (!zlib_initialized) 147 if (!zlib_initialized)
151 zlib_initialized = init_zlib_functions (); 148 zlib_initialized = init_zlib_functions ();
152 if (!zlib_initialized) 149 if (!zlib_initialized)
153 return Qnil; 150 {
151 message1 ("zlib library not found");
152 return Qnil;
153 }
154#endif 154#endif
155 155
156 /* This is a unibyte buffer, so character positions and bytes are 156 /* This is a unibyte buffer, so character positions and bytes are