Fix bogus warnings about dumping large paths
Also, yay for C++11 non-static initialisers.
This commit is contained in:
parent
0960d674d4
commit
48495f67ed
|
@ -72,8 +72,8 @@ struct BufferedSource : Source
|
|||
struct FdSink : BufferedSink
|
||||
{
|
||||
int fd;
|
||||
bool warn;
|
||||
size_t written;
|
||||
bool warn = false;
|
||||
size_t written = 0;
|
||||
|
||||
FdSink() : fd(-1) { }
|
||||
FdSink(int fd) : fd(fd) { }
|
||||
|
|
Loading…
Reference in a new issue