daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
9fc0f6
From 31a3bfaf3da730a2d6f32a8ab9d9e10e77905d4f Mon Sep 17 00:00:00 2001
9fc0f6
From: Shawn Landden <shawn@churchofgit.com>
9fc0f6
Date: Tue, 10 Dec 2013 09:28:26 -0800
9fc0f6
Subject: [PATCH] core/manager: remove infinite loop
9fc0f6
9fc0f6
---
9fc0f6
 src/core/manager.c | 4 +---
9fc0f6
 1 file changed, 1 insertion(+), 3 deletions(-)
9fc0f6
9fc0f6
diff --git a/src/core/manager.c b/src/core/manager.c
9fc0f6
index 944c196..a34a3c6 100644
9fc0f6
--- a/src/core/manager.c
9fc0f6
+++ b/src/core/manager.c
9fc0f6
@@ -2285,10 +2285,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
9fc0f6
         }
9fc0f6
 
9fc0f6
 finish:
9fc0f6
-        if (ferror(f)) {
9fc0f6
+        if (ferror(f))
9fc0f6
                 r = -EIO;
9fc0f6
-                goto finish;
9fc0f6
-        }
9fc0f6
 
9fc0f6
         assert(m->n_reloading > 0);
9fc0f6
         m->n_reloading --;