mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 06:06:18 +01:00
Handle zero-length Buffers in Node.js v13.2.0+
These now use nullptr internally - see https://github.com/nodejs/node/pull/30339
This commit is contained in:
@@ -49,6 +49,7 @@ namespace sharp {
|
||||
char *buffer;
|
||||
bool failOnError;
|
||||
size_t bufferLength;
|
||||
bool isBuffer;
|
||||
double density;
|
||||
int rawChannels;
|
||||
int rawWidth;
|
||||
@@ -64,6 +65,7 @@ namespace sharp {
|
||||
buffer(nullptr),
|
||||
failOnError(TRUE),
|
||||
bufferLength(0),
|
||||
isBuffer(FALSE),
|
||||
density(72.0),
|
||||
rawChannels(0),
|
||||
rawWidth(0),
|
||||
|
||||
Reference in New Issue
Block a user