diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-12 18:26:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-13 09:31:49 +0200 |
commit | 38cd55b007c955ee1a5fd80d89086d4f930d802d (patch) | |
tree | ff14a30ae6d0994dbca76139ff3f74aeaf47b1cc /src/core/transaction.c | |
parent | 8cf85bb5750766cf0cff53b0b73be5a5a39279f5 (diff) | |
download | systemd-38cd55b007c955ee1a5fd80d89086d4f930d802d.tar.gz |
Remove unneded {}s
$ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c
Inspired by ea7cbf5bdd68d7861ebf1570c439e8bbabd83f6c.
Diffstat (limited to 'src/core/transaction.c')
-rw-r--r-- | src/core/transaction.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c index 49f43e0327..6f614a32dc 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -336,9 +336,8 @@ static char* merge_unit_ids(const char* unit_log_field, char **pairs) { STRV_FOREACH_PAIR(unit_id, job_type, pairs) { next = strlen(unit_log_field) + strlen(*unit_id); - if (!GREEDY_REALLOC(ans, alloc, size + next + 1)) { + if (!GREEDY_REALLOC(ans, alloc, size + next + 1)) return mfree(ans); - } sprintf(ans + size, "%s%s", unit_log_field, *unit_id); if (*(unit_id+1)) |