mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Add the OMIT_ZLIB compile-time option to sessionfuzz.c. (Originally
checked into the wrong branch.) FossilOrigin-Name: 6019bf8a2db548fea4be4f49961937d5b12eba9e42c7c7a58babfaf3288cb0cd
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user