summaryrefslogtreecommitdiff
path: root/src/bin/e_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_acpi.c')
-rw-r--r--src/bin/e_acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_acpi.c b/src/bin/e_acpi.c
index 0e8f1a2..5162951 100644
--- a/src/bin/e_acpi.c
+++ b/src/bin/e_acpi.c
@@ -398,6 +398,8 @@ _e_acpi_lid_status_get(const char *device, const char *bus)
398 /* read the line from state file */ 398 /* read the line from state file */
399 ret = fgets(buff, sizeof(buff), f); 399 ret = fgets(buff, sizeof(buff), f);
400 fclose(f); 400 fclose(f);
401 if (!ret)
402 return E_ACPI_LID_UNKNOWN;
401 403
402 /* parse out state file */ 404 /* parse out state file */
403 i = 0; 405 i = 0;