mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
util: Ignore return code from str_to_uint().
Reported by Coverity. lib/util.c:795 Unchecked return value (CHECKED_RETURN): As it's not really bug, wrap it with ignore(). Fixes: 9551e80befc0 ("tests: Use environment variable for default timeout.") Acked-by: Aaron Conole <aconole@redhat.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
parent
e180c431b9
commit
37848e2188
@ -734,7 +734,7 @@ ctl_timeout_setup(unsigned int secs)
|
||||
char *env = getenv("OVS_CTL_TIMEOUT");
|
||||
|
||||
if (env && env[0]) {
|
||||
str_to_uint(env, 10, &secs);
|
||||
ignore(str_to_uint(env, 10, &secs));
|
||||
}
|
||||
}
|
||||
if (secs) {
|
||||
|
@ -119,7 +119,7 @@ def open_spell_check_dict():
|
||||
'tftp', 'timeval', 'trie', 'tso', 'ubsan', 'ukey',
|
||||
'umask', 'unassociated', 'unixctl', 'uuid'
|
||||
'virtqueue', 'vms', 'vnet', 'vport', 'vports',
|
||||
'vtep', 'wc', 'wget', 'xenserver']
|
||||
'vtep', 'wc', 'wget', 'xenserver', 'util']
|
||||
|
||||
global spell_check_dict
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user