Skip to content

Commit

Permalink
c++:osh: Make sure addr values are initialized
Browse files Browse the repository at this point in the history
So the Addr() constructor is properly initialized.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Sep 6, 2024
1 parent 2721aad commit 4d9ab44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c++/include/gensio/gensioosh
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ namespace gensios {
bool port_set() const { return is_port_set; }

private:
struct gensio_addr *gaddr;
bool is_port_set;
struct gensio_addr *gaddr = NULL;
bool is_port_set = false;
};

//*****************************************************************
Expand Down

0 comments on commit 4d9ab44

Please sign in to comment.