fix(wps): adds memset to 0 · espressif/arduino-esp32@585022e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 585022e

SuGliderme-no-dev

authored and

committed

fix(wps): adds memset to 0

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ WPS (pin is 00000000)
26 26
27 27 void wpsStart() {
28 28 esp_wps_config_t config;
29 +memset(&config, 0, sizeof(esp_wps_config_t));
29 30 //Same as config = WPS_CONFIG_INIT_DEFAULT(ESP_WPS_MODE);
30 31 config.wps_type = ESP_WPS_MODE;
31 32 strcpy(config.factory_info.manufacturer, "ESPRESSIF");