aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:40 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:40 (GMT)
commit602289d4a5303d666ae9eda87fb12c0ea0225c13 (patch)
tree740f7fc52aabd71795c5cbfbdea3f654288514ac /common
parent884f30aead9ef2272ee8646164590670f8bff365 (diff)
v3.81
Diffstat (limited to 'common')
-rw-r--r--common/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/channel.c b/common/channel.c
index 3472937..0c79355 100644
--- a/common/channel.c
+++ b/common/channel.c
@@ -657,7 +657,7 @@ save_config()
/* write channels */
for (i = 0; i < count; i++) {
fprintf(fp,"[%s]\n",channels[i]->name);
- if (0 != strcmp(channels[i]->cname,"none")) {
+ if (NULL != channels[i]->cname) {
fprintf(fp,"channel = %s\n",chanlist[channels[i]->channel].name);
if (0 != channels[i]->fine)
fprintf(fp,"fine = %+d\n", channels[i]->fine);

Privacy Policy