diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-06-20 11:42:59 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-06-20 14:20:17 +0200 |
commit | c64195d14728aa82e280d022e9f7ceff71cfc6c1 (patch) | |
tree | c4670a6e9fac2bdf2ea60f9f9fa4e6f7e57cc181 /src/print_battery_info.c | |
parent | 95c068358acb303ab01ab8dc372f893aec5fe1b0 (diff) |
Fix invalid handling of glob() errors on Linux
The manual of glob(3) says that the function returns 0 on successful
completion. Any other integer value should be considered an error, not
only negative integers.
In practice, *BSD systems use negative values but Linux uses positive
integers.
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'src/print_battery_info.c')
0 files changed, 0 insertions, 0 deletions