From fd148e277bfdd376db1edfbef9bd82b5fc3714df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 29 Jan 2018 18:40:56 +0100 Subject: [PATCH] Fix local reference (#487) --- code/espurna/libs/StreamInjector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/libs/StreamInjector.h b/code/espurna/libs/StreamInjector.h index 56fa8ed4..92eb69de 100644 --- a/code/espurna/libs/StreamInjector.h +++ b/code/espurna/libs/StreamInjector.h @@ -13,7 +13,7 @@ class StreamInjector : public Stream { typedef std::function writeCallback; StreamInjector(Stream& serial, size_t buflen = 128) : _stream(serial), _buffer_size(buflen) { - char * _buffer = new char[buflen]; + _buffer = new char[buflen]; } ~StreamInjector() {