From 67c8f846f2087744ebf857e1c8d30b4787a2c24c Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Wed, 22 Mar 2017 10:27:24 +0100 Subject: [PATCH] linphone-daemon readPipe bugfix --- daemon/daemon.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 6308afe42..757276d29 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -679,7 +679,7 @@ string Daemon::readPipe() { close(childfd); } else { mChildFd = (ortp_pipe_t)childfd; - return NULL; + return ""; } } } @@ -692,7 +692,7 @@ string Daemon::readPipe() { ms_message("Client disconnected"); ortp_server_pipe_close_client(mChildFd); mChildFd = (ortp_pipe_t)-1; - return NULL; + return ""; } buffer[ret] = '\0'; return buffer; @@ -700,7 +700,7 @@ string Daemon::readPipe() { } } #endif - return NULL; + return ""; } void Daemon::dumpCommandsHelp() {