We set SA_SIGINFO flag, so we should not get NULL.
[tests/helpers/test_sigreceive.c:45] -> [tests/helpers/test_sigreceive.c:47]: (warning) Either the condition 'if(info)' is redundant or there is possible null pointer dereference: info.
{
int ret = info->si_signo;
- if (info)
- if (info->si_code == SI_QUEUE && info->si_value.sival_int != 0)
- ret = info->si_value.sival_int;
+ if (info->si_code == SI_QUEUE && info->si_value.sival_int != 0)
+ ret = info->si_value.sival_int;
_exit(ret);
}