Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298330
b: refs/heads/master
c: 842f07f
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Arnaldo Carvalho de Melo committed Mar 22, 2012
1 parent c2f61d2 commit 7834361
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a
refs/heads/master: 842f07f6127afa48cca6b2ce9021b985e8eb9068
10 changes: 4 additions & 6 deletions trunk/tools/perf/util/trace-event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ static char *event_read_name(void)
static int event_read_id(void)
{
char *token;
int id;
int id = -1;

if (read_expected_item(EVENT_ITEM, "ID") < 0)
return -1;
Expand All @@ -731,15 +731,13 @@ static int event_read_id(void)
return -1;

if (read_expect_type(EVENT_ITEM, &token) < 0)
goto fail;
goto free;

id = strtoul(token, NULL, 0);
free_token(token);
return id;

fail:
free:
free_token(token);
return -1;
return id;
}

static int field_is_string(struct format_field *field)
Expand Down

0 comments on commit 7834361

Please sign in to comment.