kernel/user_debugger: Zero-initialize addressOffset.

On some optimization levels we get warnings/errors about it being
potentially uninitialized (but not at -O2, hence this wasn't a
problem in nightly builds.)
This commit is contained in:
Augustin Cavalier
2025-01-25 16:00:36 -05:00
parent 2cee2502c5
commit bd4d542bec
+1 -1
View File
@@ -1849,7 +1849,7 @@ debug_nub_thread(void *)
// find the area
area_id sourceArea;
addr_t addressOffset;
addr_t addressOffset = 0;
if (result == B_OK) {
sourceArea = _user_area_for((void*)address);
if (sourceArea < 0) {