From 1b23074de75309aa788d37f98fe43abb31189c9c Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 31 Oct 2012 10:20:07 +0100 Subject: [PATCH] Ignore empty options. --- softhddevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/softhddevice.cpp b/softhddevice.cpp index ef76f26..831f2d2 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -50,7 +50,7 @@ extern "C" /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "0.5.2" +static const char *const VERSION = "0.5.2rc1" #ifdef GIT_REV "-GIT" GIT_REV #endif @@ -2545,7 +2545,7 @@ cString cPluginSoftHdDevice::SVDRPCommand(const char *command, ConfigAC3Device = strdup(s + 2); AudioSetDeviceAC3(ConfigAC3Device); - } else { + } else if ( *s ) { free(tmp); return "unsupported option"; }