Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cosmetic tweak

  • Loading branch information...
commit 45ec0034f235509ba856a2028c0bcc047417ca2e 1 parent d0e690a
@richcarl richcarl authored Eric Merritt committed
View
2  chapter_12/plain_port/json_parser/c_src/jp_prog.c
@@ -255,8 +255,8 @@ static int handle_map_key(void *ctx, const unsigned char *stringVal,
static int handle_start(void *ctx, int array)
{
state_t *st = (state_t *)ctx;
- container_t *c = malloc(sizeof(container_t));
count_element(st);
+ container_t *c = malloc(sizeof(container_t));
/* link and initialize container struct */
c->next = st->c;
st->c = c;
View
2  chapter_12/port_driver/json_parser/c_src/jp_driver.c
@@ -274,8 +274,8 @@ static int handle_map_key(void *ctx, const unsigned char *stringVal,
static int handle_start(void *ctx, int array)
{
state_t *st = (state_t *)ctx;
- container_t *c = driver_alloc(sizeof(container_t));
count_element(st);
+ container_t *c = driver_alloc(sizeof(container_t));
/* link and initialize container struct */
c->next = st->c;
st->c = c;
Please sign in to comment.
Something went wrong with that request. Please try again.