Skip to content

Commit

Permalink
Set pointers to nullptr to start with (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Oct 21, 2024
1 parent 15115f5 commit 4cae3dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esphome/components/voice_assistant/voice_assistant.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ class VoiceAssistant : public Component {
uint8_t auto_gain_;
float volume_multiplier_;

uint8_t *send_buffer_;
int16_t *input_buffer_;
uint8_t *send_buffer_{nullptr};
int16_t *input_buffer_{nullptr};

bool continuous_{false};
bool silence_detection_;
Expand Down

0 comments on commit 4cae3dc

Please sign in to comment.