[gnome-disk-utility] add a missing 'else'



commit 216a5913753ab7994429fff3baa53d2f1c728ee3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 26 16:11:12 2009 -0400

    add a missing 'else'
    
    There was an 'else' missing in this if-else cascade.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=575710
    
    Signed-off-by: David Zeuthen <davidz redhat com>
---
 src/gdu/gdu-error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gdu/gdu-error.c b/src/gdu/gdu-error.c
index 860f9a1..dbd8022 100644
--- a/src/gdu/gdu-error.c
+++ b/src/gdu/gdu-error.c
@@ -73,7 +73,7 @@ _gdu_error_fixup (GError *error)
         matched = TRUE;
         if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Failed") == 0)
                 error->code = GDU_ERROR_FAILED;
-        if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Inhibited") == 0)
+        else if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Inhibited") == 0)
                 error->code = GDU_ERROR_INHIBITED;
         else if (strcmp (name, "org.freedesktop.DeviceKit.Disks.Error.Busy") == 0)
                 error->code = GDU_ERROR_BUSY;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]