chiark / gitweb /
udev: rules - close empty file
authorTom Gundersen <teg@jklm.no>
Wed, 17 Sep 2014 17:53:01 +0000 (19:53 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 17 Sep 2014 17:55:23 +0000 (19:55 +0200)
commit6c8aaf0c1bf2a04010ae7125a08ceb51e7058712
tree352804381ead7ad0d226635933db695d25ba314d
parent6f42877282a7237f3aa840403047b7cc18d7faa6
udev: rules - close empty file

If the file is found to be empty, we exit early without closing the file first.

Found by coverity. Fixes CID #1237759.
src/udev/udev-rules.c