From 4fadd04f7e194eb6cee909c6c2f51d6e8c0fcd48 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Thu, 25 Oct 2012 21:36:32 +0300 Subject: Use strcmp instead of comparing pointers --- src/vdr-plugin/webvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/vdr-plugin/webvideo.c b/src/vdr-plugin/webvideo.c index 10106b4..5758b9b 100644 --- a/src/vdr-plugin/webvideo.c +++ b/src/vdr-plugin/webvideo.c @@ -436,7 +436,7 @@ cString cPluginWebvideo::SVDRPCommand(const char *Command, const char *Option, i if(*Option) { debug("SVDRP(%s, %s)", Command, Option); cString twvtref = CreateWvtRef(Option); - if (twvtref != "") { + if (strcmp(twvtref, "") != 0) { cMenuRequest *req; if (strcasecmp(Command, "PLAY") == 0) req = new cStreamUrlRequest(0, twvtref); @@ -460,7 +460,7 @@ cString cPluginWebvideo::SVDRPCommand(const char *Command, const char *Option, i cString cPluginWebvideo::CreateWvtRef(const char *url) { cString domain = parseDomain(url); - if (domain == "") + if (strcmp(domain, "") == 0) return ""; char *encoded = URLencode(url); -- cgit v1.2.3