Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156262
b: refs/heads/master
c: 7e03065
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Ingo Molnar committed Aug 4, 2009
1 parent 4e77c51 commit 87f152f
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: 59b9005692d4c8b5d73cfc41aa7229f47be163a9
refs/heads/master: 7e030655dda5b5efc4305e2a8f46c4967d32eb3d
2 changes: 1 addition & 1 deletion trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static int strcommon(const char *pathname)
{
int n = 0;

while (pathname[n] == cwd[n] && n < cwdlen)
while (n < cwdlen && pathname[n] == cwd[n])
++n;

return n;
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ char *quote_path_relative(const char *in, int len,
strbuf_addch(out, '"');
if (prefix) {
int off = 0;
while (prefix[off] && off < len && prefix[off] == in[off])
while (off < len && prefix[off] && prefix[off] == in[off])
if (prefix[off] == '/') {
prefix += off + 1;
in += off + 1;
Expand Down

0 comments on commit 87f152f

Please sign in to comment.