commit | 03a7ce06751ce70f363be08502c7470ca7bcb5c8 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 18:27:48 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 20:44:26 2013 -0700 |
tree | dcfdcd576defcc7e30449d250a01aeb40602a6a6 | |
parent | 8f55e2886d05f4d96300f479af4bc00a51171620 [diff] |
read_script(): close fd even if it's 0 Reported by coverity, CID 996832: > 19. off_by_one: Testing whether handle "fd" is strictly greater than > zero is suspicious. Did you intend to include equality with zero? "fd" > leaks when it is zero. Signed-off-by: Kir Kolyshkin <kir@openvz.org>