Skip to content

Commit 76710cf

Browse files
committed
Initialize with NULL
1 parent a0c6ae3 commit 76710cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/esp32/cbuf.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class cbuf
5858
cbuf *next;
5959

6060
protected:
61-
RingbufHandle_t _buf;
61+
RingbufHandle_t _buf = NULL;
6262
#if !CONFIG_DISABLE_HAL_LOCKS
63-
SemaphoreHandle_t _lock;
63+
SemaphoreHandle_t _lock = NULL;
6464
#endif
6565

6666
};

0 commit comments

Comments
 (0)