summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorvan Le Goff2012-08-07 04:41:04 (EDT)
committerEugene Tarassov2012-08-07 12:12:12 (EDT)
commitad0ba29f9cc286a912bcb60170888b9afac2a50c (patch)
treeeb4c77f1f982cecbf38a53c8dac7c73a480b6c05
parent6409c0f5f14b4451c1bc1f40460d2d0a0c8fe990 (diff)
downloadorg.eclipse.tcf.agent-ad0ba29f9cc286a912bcb60170888b9afac2a50c.zip
org.eclipse.tcf.agent-ad0ba29f9cc286a912bcb60170888b9afac2a50c.tar.gz
org.eclipse.tcf.agent-ad0ba29f9cc286a912bcb60170888b9afac2a50c.tar.bz2
Fixed malformed JSON string when defining bitfield with named values.
-rw-r--r--agent/tcf/services/registers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/registers.c b/agent/tcf/services/registers.c
index 93c349b..19b12f9 100644
--- a/agent/tcf/services/registers.c
+++ b/agent/tcf/services/registers.c
@@ -153,7 +153,7 @@ static void write_context(OutputStream * out, char * id,
write_stream(out, '[');
while (reg_def->values[i] != NULL) {
NamedRegisterValue * v = reg_def->values[i++];
- if (i > 0) write_stream(out, ',');
+ if (i > 1) write_stream(out, ',');
write_stream(out, '{');
json_write_string(out, "Value");
write_stream(out, ':');