Skip to content

Commit

Permalink
Fix coverity scan issue 79014
Browse files Browse the repository at this point in the history
Uninitialized scalar field -- The field will contain an arbitrary value
left over from earlier computations.
In Async::Serial::Serial: A scalar field is not initialized by the
constructor (CWE-457)
  • Loading branch information
sm0svx committed Jan 21, 2015
1 parent 335760e commit 6ad3c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async/core/AsyncSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ using namespace Async;
*------------------------------------------------------------------------
*/
Serial::Serial(const string& serial_port)
: serial_port(serial_port), canonical(false), fd(-1), dev(0)
: serial_port(serial_port), canonical(false), fd(-1), port_settings(), dev(0)
{

} /* Serial::Serial */
Expand Down

0 comments on commit 6ad3c99

Please sign in to comment.