summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-14 23:23:55 (GMT)
committerJasmin Jessich <jasmin@anw.at>2017-06-23 23:45:13 (GMT)
commit0a7561172ed2e5f19fd97610c7685fc8f7af15a6 (patch)
treea04395030cb485511123460d9742961505582b78
parenta45e095b45ff231133f624fc84b6826f9ef76146 (diff)
downloadvdr-plugin-live-0a7561172ed2e5f19fd97610c7685fc8f7af15a6.tar.gz
vdr-plugin-live-0a7561172ed2e5f19fd97610c7685fc8f7af15a6.tar.bz2
Fixed a warning in epg_events.cpp
-rw-r--r--epg_events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/epg_events.cpp b/epg_events.cpp
index c7dd590..6592a27 100644
--- a/epg_events.cpp
+++ b/epg_events.cpp
@@ -380,7 +380,9 @@ namespace vdrlive
char cmdBuff[500];
sprintf(cmdBuff,"ln -s \"%s\" \"%s\"",imagefile.c_str(),tmpfile.c_str());
- system(cmdBuff);
+ int s = system(cmdBuff);
+ if (s < 0)
+ esyslog("[live] ERROR: Couldn't execute command %s", cmdBuff);
found = true;
}
globfree(&globbuf);