summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@yik.fritz.box>2013-09-12 23:37:23 +0200
committerKay Sievers <kay@yik.fritz.box>2013-09-12 23:37:23 +0200
commit6e869e18c07f4251390cbf215532635a85712a6a (patch)
treed82c57f3fe8fd67f13c26c781db47ad80acf6644 /src
parent79640424059328268b9fb6c5fa8eb777b27a177e (diff)
shut up gcc complaining about freeing a const variable
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index dc3e41bf42..57e5bb941b 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1494,7 +1494,8 @@ static DBusHandlerResult wait_filter(DBusConnection *connection, DBusMessage *me
} else if (dbus_message_is_signal(message, "org.freedesktop.systemd1.Manager", "JobRemoved")) {
uint32_t id;
- const char *path, *result, *unit, *r;
+ const char *path, *result, *unit;
+ char *r;
if (dbus_message_get_args(message, &error,
DBUS_TYPE_UINT32, &id,