Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/spawn_sync.cc4
-rw-r--r--src/spawn_sync.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index 46d895e38a7..d57b4b03e23 100644
--- a/src/spawn_sync.cc
+++ b/src/spawn_sync.cc
@@ -50,9 +50,7 @@ using v8::String;
using v8::Value;
-SyncProcessOutputBuffer::SyncProcessOutputBuffer()
- : used_(0),
- next_(nullptr) {
+SyncProcessOutputBuffer::SyncProcessOutputBuffer() {
}
diff --git a/src/spawn_sync.h b/src/spawn_sync.h
index adb2618cc5f..397e62b9d2c 100644
--- a/src/spawn_sync.h
+++ b/src/spawn_sync.h
@@ -56,9 +56,9 @@ class SyncProcessOutputBuffer {
private:
// Use unsigned int because that's what `uv_buf_init` takes.
mutable char data_[kBufferSize];
- unsigned int used_;
+ unsigned int used_ = 0;
- SyncProcessOutputBuffer* next_;
+ SyncProcessOutputBuffer* next_ = nullptr;
};