diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-01 15:30:02 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2011-11-01 15:30:02 +0100 |
commit | 7e1feffd2a714a1e0d094d9e11dc8ae000755802 (patch) | |
tree | 2760b9b28130ebbb288eba52b67b5f7b1fd83777 | |
parent | 876f4d070a97212b8ff2bfcbe76ca14e833b20c3 (diff) | |
download | vdr-plugin-epgsearch-7e1feffd2a714a1e0d094d9e11dc8ae000755802.tar.gz vdr-plugin-epgsearch-7e1feffd2a714a1e0d094d9e11dc8ae000755802.tar.bz2 |
Fix some issues flagged by cppcheck
-rw-r--r-- | confdloader.c | 2 | ||||
-rw-r--r-- | pending_notifications.c | 5 | ||||
-rw-r--r-- | recdone.c | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/confdloader.c b/confdloader.c index bb195aa..3109c1f 100644 --- a/confdloader.c +++ b/confdloader.c @@ -132,8 +132,8 @@ bool cConfDLoader::LoadFile(const char *FileName) } } } + fclose(f); } - fclose(f); return true; } else diff --git a/pending_notifications.c b/pending_notifications.c index bd96953..659b5a3 100644 --- a/pending_notifications.c +++ b/pending_notifications.c @@ -153,9 +153,10 @@ bool cPendingNotifications::Load(const char *FileName) LogFile.iSysLog("loading %s", fileName); FILE *f = fopen(fileName, "r"); bool result = false; - if (f) + if (f) { result = cPendingNotification::Read(f); - fclose(f); + fclose(f); + } if (result) LogFile.Log(2,"loaded pending notifications from %s (count: %d)", fileName, Count()); else @@ -397,9 +397,10 @@ bool cRecsDone::Load(const char *FileName) LogFile.iSysLog("loading %s", fileName); FILE *f = fopen(fileName, "r"); bool result = false; - if (f) + if (f) { result = cRecDone::Read(f); - fclose(f); + fclose(f); + } if (result) LogFile.Log(2,"loaded recordings done from %s (count: %d)", fileName, Count()); else |