Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Sep 5, 2023
1 parent bd1b86f commit c6e832a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ int main(int argc, char * argv [])
imsg_notice("Overriding Baud Rate : %d\n", baudrate);
pgm->baudrate = baudrate;
}
else if (ser->baudrate) {
else if (ser && ser->baudrate) {
imsg_notice("Default Baud Rate : %d\n", ser->baudrate);
pgm->baudrate = ser->baudrate;
}
Expand Down

0 comments on commit c6e832a

Please sign in to comment.