summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-11-07 12:27:25 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-11-07 12:27:25 +0100
commiteff0655b1df8cf4c69484a9f045f7536bb71947f (patch)
tree1ce061cd7e83480016383e93b91beb4ce65f8078 /channels.c
parentcfb37a7edf8caafb0f07594b080837231ba9c575 (diff)
downloadvdr-eff0655b1df8cf4c69484a9f045f7536bb71947f.tar.gz
vdr-eff0655b1df8cf4c69484a9f045f7536bb71947f.tar.bz2
Fixed unjustified log entries about changed channel pids
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/channels.c b/channels.c
index ebc7eb19..c689850b 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 2.16 2010/06/05 13:33:57 kls Exp $
+ * $Id: channels.c 2.17 2010/11/07 12:24:59 kls Exp $
*/
#include "channels.h"
@@ -262,12 +262,14 @@ static int IntArraysDiffer(const int *a, const int *b, const char na[][MAXLANGCO
{
int result = 0;
for (int i = 0; a[i] || b[i]; i++) {
- if (a[i] && na && nb && strcmp(na[i], nb[i]) != 0)
+ if (!a[i] || !b[i]) {
+ result |= VALDIFF;
+ break;
+ }
+ if (na && nb && strcmp(na[i], nb[i]) != 0)
result |= STRDIFF;
if (a[i] != b[i])
result |= VALDIFF;
- if (!a[i] || !b[i])
- break;
}
return result;
}