aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index f65d0b1a5..706040bc6 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -430,6 +430,10 @@ show_metric_symbols (struct metric_result *metric_res, struct metric_callback_da
}
else {
g_hash_table_foreach (metric_res->symbols, metric_symbols_callback, cd);
+ /* Remove last , from log buf */
+ if (cd->log_buf[cd->log_offset - 1] == ',') {
+ cd->log_buf[--cd->log_offset] = '\0';
+ }
}
}