diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2012-10-25 21:36:32 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2012-10-25 21:36:32 +0300 |
commit | 4fadd04f7e194eb6cee909c6c2f51d6e8c0fcd48 (patch) | |
tree | ae77d13f7b56b905eff3449e065d5099c72a90c2 /src | |
parent | db6afd9e695971ce4ddb7cc9ae961f1945d9893a (diff) | |
download | vdr-plugin-webvideo-4fadd04f7e194eb6cee909c6c2f51d6e8c0fcd48.tar.gz vdr-plugin-webvideo-4fadd04f7e194eb6cee909c6c2f51d6e8c0fcd48.tar.bz2 |
Use strcmp instead of comparing pointers
Diffstat (limited to 'src')
-rw-r--r-- | src/vdr-plugin/webvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |