Cleanup: remove dead increment of pointer
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 25 Jul 2017 21:43:58 +0000 (17:43 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 28 Jul 2017 18:00:58 +0000 (14:00 -0400)
No further memcpy is performed no need to increment the pointer.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/buffer-usage.c

index 4e935091992f532d01b06c622f2aa6f7a4e06fd9..16292ea91eb94ab684c22c7eb431bad3a6f32c83 100644 (file)
@@ -146,7 +146,6 @@ ssize_t lttng_condition_buffer_usage_serialize(
                memcpy(buf, usage->session_name, session_name_len);
                buf += session_name_len;
                memcpy(buf, usage->channel_name, channel_name_len);
-               buf += channel_name_len;
        }
        ret = size;
 end:
This page took 0.026863 seconds and 4 git commands to generate.