summaryrefslogtreecommitdiff
path: root/src/locale/keymap-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-12 18:26:05 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-13 09:31:49 +0200
commit38cd55b007c955ee1a5fd80d89086d4f930d802d (patch)
treeff14a30ae6d0994dbca76139ff3f74aeaf47b1cc /src/locale/keymap-util.c
parent8cf85bb5750766cf0cff53b0b73be5a5a39279f5 (diff)
downloadsystemd-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/locale/keymap-util.c')
-rw-r--r--src/locale/keymap-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c
index 30669a9359..233d081300 100644
--- a/src/locale/keymap-util.c
+++ b/src/locale/keymap-util.c
@@ -267,9 +267,8 @@ int x11_read_data(Context *c, sd_bus_message *m) {
else if (streq(a[1], "XkbOptions"))
p = &c->x11_options;
- if (p) {
+ if (p)
free_and_replace(*p, a[2]);
- }
}
} else if (!in_section && first_word(l, "Section")) {