englebass pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d5853ddc2c6e4a3c2a4c2e51021f1e0c73c5f23d

commit d5853ddc2c6e4a3c2a4c2e51021f1e0c73c5f23d
Author: Sebastian Dransfeld <[email protected]>
Date:   Tue Dec 10 20:15:21 2013 +0100

    e: Check for error reading lid status
---
 src/bin/e_acpi.c                 | 2 ++
 src/bin/e_desktop_editor.c       | 2 ++
 src/bin/e_fm/e_fm_main_udisks2.c | 1 +
 3 files changed, 5 insertions(+)

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)
    /* read the line from state file */
    ret = fgets(buff, sizeof(buff), f);
    fclose(f);
+   if (!ret)
+     return E_ACPI_LID_UNKNOWN;
 
    /* parse out state file */
    i = 0;
diff --git a/src/bin/e_desktop_editor.c b/src/bin/e_desktop_editor.c
index ebd2774..d0cb1fb 100644
--- a/src/bin/e_desktop_editor.c
+++ b/src/bin/e_desktop_editor.c
@@ -1,5 +1,7 @@
 #include "e.h"
 
+/* TODO: Check cache update */
+
 struct _E_Config_Dialog_Data
 {
    Efreet_Desktop *desktop;
diff --git a/src/bin/e_fm/e_fm_main_udisks2.c b/src/bin/e_fm/e_fm_main_udisks2.c
index be5dca7..a79437f 100644
--- a/src/bin/e_fm/e_fm_main_udisks2.c
+++ b/src/bin/e_fm/e_fm_main_udisks2.c
@@ -560,6 +560,7 @@ _e_fm_main_udisks2_cb_dev_del(void *data __UNUSED__, const 
Eldbus_Message *msg)
      }
    if (vol)
      {
+        /* TODO: Fix here: T432, T398, T380 */
         v = _volume_find_by_dbus_path(path);
         if (v && (!v->mounted))
           {

-- 


Reply via email to