raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8bf18495f4822dbf69975e51c4d93bb320207a78

commit 8bf18495f4822dbf69975e51c4d93bb320207a78
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Apr 23 00:51:53 2020 +0100

    bz5 mod - fix coverity warning about scanf
    
    while this will never be a problem as its internal messages that are
    well formatted... this does make coverity happy
    
    fix CID 1425458
---
 src/modules/bluez5/e_mod_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/bluez5/e_mod_main.c b/src/modules/bluez5/e_mod_main.c
index 74a8a815a..a8e2b1a74 100644
--- a/src/modules/bluez5/e_mod_main.c
+++ b/src/modules/bluez5/e_mod_main.c
@@ -290,7 +290,8 @@ _cb_rfkill_unblock(void *datam EINA_UNUSED, const char 
*params)
 {
    int ret_code = 0;
 
-   sscanf(params, "%i %*s", &ret_code);
+   if (sscanf(params, "%i %*s", &ret_code) != 1) return;
+
    if (ret_code == 0) return;
 
    e_util_dialog_show

-- 


Reply via email to