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
This commit is contained in:
Carsten Haitzler 2020-04-23 00:51:53 +01:00
parent 21ec506dfd
commit 8bf18495f4
1 changed files with 2 additions and 1 deletions

View File

@ -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