runc/libcontainer/seccomp
Wang Long 3a71eb0256 move error check out of the for loop
The `bufio.Scanner.Scan` method returns false either by reaching the
end of the input or an error. After Scan returns false, the Err method
will return any error that occurred during scanning, except that if it
was io.EOF, Err will return nil.

We should check the error when Scan return false(out of the for loop).

Signed-off-by: Wang Long <long.wanglong@huawei.com>
2017-01-18 05:02:39 +00:00
..
fixtures add seccomp.IsEnabled() function 2016-01-18 10:44:31 -08:00
config.go seccomp: Add ppc and s390x to seccomp/config.go 2016-05-31 08:56:07 -04:00
seccomp_linux.go move error check out of the for loop 2017-01-18 05:02:39 +00:00
seccomp_linux_test.go add seccomp.IsEnabled() function 2016-01-18 10:44:31 -08:00
seccomp_unsupported.go Fix trivial style errors reported by `go vet` and `golint` 2016-04-12 08:13:16 +00:00