chiark / gitweb /
shut up gcc complaining about freeing a const variable
authorKay Sievers <kay@yik.fritz.box>
Thu, 12 Sep 2013 21:37:23 +0000 (23:37 +0200)
committerKay Sievers <kay@yik.fritz.box>
Thu, 12 Sep 2013 21:37:23 +0000 (23:37 +0200)
src/systemctl/systemctl.c

index dc3e41b..57e5bb9 100644 (file)
@@ -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,