| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0ca831a commit 6622ac7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,7 +276,7 @@ function assertSize(size) { | |||
| 276 | 276 | */ | |
| 277 | 277 | Buffer.alloc = function alloc(size, fill, encoding) { | |
| 278 | 278 | assertSize(size); | |
| 279 | - if (fill !== undefined && size > 0) { | ||
| 279 | + if (fill !== undefined && fill !== 0 && size > 0) { | ||
| 280 | 280 | return _fill(createUnsafeBuffer(size), fill, encoding); | |
| 281 | 281 | } | |
| 282 | 282 | return new FastBuffer(size); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments