diff options
author | drh <drh@noemail.net> | 2020-07-23 18:03:14 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-07-23 18:03:14 +0000 |
commit | 38f0ccc070d50ff693f62ee9dc8e508db18a62c4 (patch) | |
tree | f9b1c0d1a6e67caf029f110da2d1a44e149f514b /test/sessionfuzz.c | |
parent | 2add24c0d4b467edd0a449c90d305e46dfd6d7a6 (diff) | |
download | sqlite-38f0ccc070d50ff693f62ee9dc8e508db18a62c4.tar.gz sqlite-38f0ccc070d50ff693f62ee9dc8e508db18a62c4.zip |
Add the OMIT_ZLIB compile-time option to sessionfuzz.c. (Originally
checked into the wrong branch.)
FossilOrigin-Name: 6019bf8a2db548fea4be4f49961937d5b12eba9e42c7c7a58babfaf3288cb0cd
Diffstat (limited to 'test/sessionfuzz.c')
-rw-r--r-- | test/sessionfuzz.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sessionfuzz.c b/test/sessionfuzz.c index 1d0bee436..d8cc1bebf 100644 --- a/test/sessionfuzz.c +++ b/test/sessionfuzz.c @@ -698,7 +698,9 @@ static const char zHelp[] = #include <stdio.h> #include <string.h> #include <assert.h> +#ifndef OMIT_ZLIB #include "zlib.h" +#endif /* ** Implementation of the "sqlar_uncompress(X,SZ)" SQL function @@ -715,6 +717,9 @@ static void sqlarUncompressFunc( int argc, sqlite3_value **argv ){ +#ifdef OMIT_ZLIB + sqlite3_result_value(context, argv[0]); +#else uLong nData; uLongf sz; @@ -733,6 +738,7 @@ static void sqlarUncompressFunc( } sqlite3_free(pOut); } +#endif } |