[systemd-commits] src/shared

Lukas Nykryn lnykryn at kemper.freedesktop.org
Wed Aug 20 06:04:12 PDT 2014


 src/shared/util.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 081e009bef5a09c986bfabdf46e96810afaed1c3
Author: Lukas Nykryn <lnykryn at redhat.com>
Date:   Wed Aug 20 15:02:09 2014 +0200

    util: return after freeing all members of array

diff --git a/src/shared/util.c b/src/shared/util.c
index 85a570a..9d254e0 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -7113,10 +7113,10 @@ int unquote_many_words(const char **p, ...) {
                 if (r < 0) {
                         int j;
 
-                        for (j = 0; j < c; j++) {
+                        for (j = 0; j < c; j++)
                                 free(l[j]);
-                                return r;
-                        }
+
+                        return r;
                 }
 
                 if (r == 0)



More information about the systemd-commits mailing list