]> sigrok.org Git - libserialport.git/commitdiff
Fix xon_xoff not initialized
authorAlexander Batalov <redacted>
Fri, 29 Mar 2024 09:25:51 +0000 (12:25 +0300)
committerSoeren Apel <redacted>
Fri, 30 Aug 2024 20:26:43 +0000 (22:26 +0200)
serialport.c

index 58b3c3e14777db0aac7245e5e81ca5f4f4c96e45..d15c664ff1dbfb0a4c58bdca82df945c8c871101 100644 (file)
@@ -2293,6 +2293,7 @@ SP_API enum sp_return sp_new_config(struct sp_port_config **config_ptr)
        config->cts = -1;
        config->dtr = -1;
        config->dsr = -1;
+       config->xon_xoff = -1;
 
        *config_ptr = config;