diff options
author | Andreas <andreas.volz@tux-style.com> | 2021-07-28 22:08:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 22:08:52 +0200 |
commit | f6593f35b9169af85534931e2e7136613db7609d (patch) | |
tree | efb68dd665a4ba0d6e6f4b61926bb3a77d00ef7d /src/pipe.cpp | |
parent | e3455d20fc0b6e00bce7668fbd9b165fdc8a7040 (diff) | |
parent | e12ad7890cbed2d38a14f9b8960f91d187e103f0 (diff) | |
download | dbus-c++-master.tar.gz |
Diffstat (limited to 'src/pipe.cpp')
-rw-r--r-- | src/pipe.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp index 01211b3..4a91ddd 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -83,5 +83,6 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes) void Pipe::signal() { // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work... - ::write(_fd_write, '\0', 1); + char nullc[1] = {'\0'}; + ::write(_fd_write, nullc, 1); } |