ifcfg: make Coverity happy

System Internals / NetworkManager - Lubomir Rintel [v3.sk] - 29 January 2016 13:18 UTC

CID 59382 (#1 of 1): Dereference null return value (NULL_RETURNS) 10. dereference: Dereferencing a pointer that might be null value when calling strcmp.

Not exactly true, since we ruled out the posibility earlier; but we could still get rid of a couple of strcmps.

a77ec45 ifcfg: make Coverity happy
src/settings/plugins/ifcfg-rh/reader.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share