Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277359
b: refs/heads/master
c: 002c4fd
h: refs/heads/master
i:
  277357: 154380f
  277355: a08f2dd
  277351: fc9dc04
  277343: 920aa64
v: v3
  • Loading branch information
Robert Richter authored and Arnaldo Carvalho de Melo committed Dec 23, 2011
1 parent d64f8f1 commit 25dd0ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: f7a8a1336416883dc0ccd96c17c604e34de61c25
refs/heads/master: 002c4fd92d772becf8745b9cbcebe5c95fe6dad0
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct perf_session *perf_session__new(const char *filename, int mode,
bool force, bool repipe,
struct perf_tool *tool)
{
size_t len = filename ? strlen(filename) + 1 : 0;
size_t len = filename ? strlen(filename) : 0;
struct perf_session *self = zalloc(sizeof(*self) + len);

if (self == NULL)
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct perf_session {
int cwdlen;
char *cwd;
struct ordered_samples ordered_samples;
char filename[0];
char filename[1];
};

struct perf_tool;
Expand Down

0 comments on commit 25dd0ab

Please sign in to comment.