This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 79a45a4a3e2d568d265798dcab9e00db60f00b85
Author: [email protected] <[email protected]>
AuthorDate: Fri Mar 13 14:18:46 2026 -0600
fix: add NULL guard to _poll_wakeup() to prevent invalid pipe writes
The _poll_wakeup() function was unconditionally calling ecore_pipe_write()
without checking if _poll_pipe was initialized. This caused valgrind errors
when the function was called during two scenarios: the initial device scan
in _battery_udev_start() (before the pipe is created) and after
_cb_poll_thread_end() clears it.
This fix ensures the pipe is valid before attempting to write to it,
eliminating the "Input handle pointer is NULL" error from ecore_pipe_write().
---
src/modules/battery/e_mod_udev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/battery/e_mod_udev.c b/src/modules/battery/e_mod_udev.c
index a99cdf0fe..ecbc783c8 100644
--- a/src/modules/battery/e_mod_udev.c
+++ b/src/modules/battery/e_mod_udev.c
@@ -194,7 +194,7 @@ static void
_poll_wakeup(void)
{ // in main loop
int dummy = 1;
- ecore_pipe_write(_poll_pipe, &dummy, sizeof(dummy));
+ if (_poll_pipe) ecore_pipe_write(_poll_pipe, &dummy, sizeof(dummy));
}
static void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.