git: kernel - Fix uninitialized variable in kqueue_register()
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Nov 4 13:35:35 PST 2020
commit c41d0ae6d927ff67e11c76de4f3ec94774273397
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Nov 4 13:34:09 2020 -0800
kernel - Fix uninitialized variable in kqueue_register()
* Fix another uninitialized variable that gcc didn't detect,
this time in kqueue_register().
* Caused kernel compiled with -O0 to not operate properly.
* Initializing the error variable to 0 solves the problem.
Reported-by: zrj
Summary of changes:
sys/kern/kern_event.c | 1 +
1 file changed, 1 insertion(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c41d0ae6d927ff67e11c76de4f3ec94774273397
--
DragonFly BSD source repository
More information about the Commits
mailing list