Skip to content

Commit 32280b6

Browse files
committed
Initialise fileDesc_ in header
1 parent e00c6be commit 32280b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/CppLinuxSerial/SerialPort.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ namespace mn {
249249
SoftwareFlowControl softwareFlowControl_ = SoftwareFlowControl::OFF;
250250

251251
/// \brief The file descriptor for the open file. This gets written to when Open() is called.
252-
int fileDesc_;
252+
int fileDesc_ = -1;
253253

254254
bool echo_;
255255

0 commit comments

Comments
 (0)