summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-20 15:29:02 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-20 15:29:02 +0000
commit187fe65eead4e4afdfe64b1b1ee72d276ca10d51 (patch)
treef5ef82a5cf6ad9bcaa7a636f1faacdf05f0d3be5
parentf7c9561ada9071a65a15288ba8c31b0fb66f48da (diff)
remove superfluous test for '#'
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1150 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-daemon/static-hosts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c
index 163ad30..8e16d84 100644
--- a/avahi-daemon/static-hosts.c
+++ b/avahi-daemon/static-hosts.c
@@ -176,8 +176,8 @@ void static_hosts_load(int in_chroot) {
/* Set the end of the string to NULL */
s[strcspn(s, "#\r\n")] = 0;
- /* Ignore comment (#) and blank lines (*/
- if (*s == '#' || *s == 0)
+ /* Ignore blank lines */
+ if (*s == 0)
continue;
/* Read the first string (ip) up to the next whitespace */