Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73199
b: refs/heads/master
c: 0b030c2
h: refs/heads/master
i:
  73197: 28480b4
  73195: 01f6ec6
  73191: 1dae042
  73183: c5d534e
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Nov 5, 2007
1 parent 31c3a34 commit d2e9eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a75983eef1193c43caebde6643a218bd8d8390e
refs/heads/master: 0b030c2c2f0f1d98d5fe412e5b7cf7fd53f5221a
4 changes: 4 additions & 0 deletions trunk/lib/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ int bitmap_scnlistprintf(char *buf, unsigned int buflen,
/* current bit is 'cur', most recently seen range is [rbot, rtop] */
int cur, rbot, rtop;

if (buflen == 0)
return 0;
buf[0] = 0;

rbot = cur = find_first_bit(maskp, nmaskbits);
while (cur < nmaskbits) {
rtop = cur;
Expand Down

0 comments on commit d2e9eeb

Please sign in to comment.