summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-19 12:32:16 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-19 12:32:16 +0100
commit040f842e6cec732d39bbd7895b4d1d855011b2bb (patch)
tree34e521d13c45aaed2ebaae214287aa827dcfa173 /svdrp.c
parent5cb66f8090dfe47b0c6c10bae3766950fab78835 (diff)
downloadvdr-040f842e6cec732d39bbd7895b4d1d855011b2bb.tar.gz
vdr-040f842e6cec732d39bbd7895b4d1d855011b2bb.tar.bz2
Fixed processing SVDRP client responses in case the caller doesn't want the actual response strings
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/svdrp.c b/svdrp.c
index 4f74c8fd..0f56d10f 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 4.36 2018/03/18 10:43:53 kls Exp $
+ * $Id: svdrp.c 4.37 2018/03/19 12:16:33 kls Exp $
*/
#include "svdrp.h"
@@ -480,8 +480,11 @@ bool cSVDRPClient::Process(cStringList *Response)
bool cSVDRPClient::Execute(const char *Command, cStringList *Response)
{
+ cStringList Dummy;
if (Response)
Response->Clear();
+ else
+ Response = &Dummy;
return Send(Command) && Process(Response);
}