From 216a5913753ab7994429fff3baa53d2f1c728ee3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 26 Mar 2009 16:11:12 -0400 Subject: 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 --- src/gdu/gdu-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit