]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
You should not follow next two times.
authorPavel Machek <pavel@ucw.cz>
Wed, 3 Nov 1999 22:21:26 +0000 (22:21 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 3 Nov 1999 22:21:26 +0000 (22:21 +0000)
conf/cf-lex.l

index 258ca7e9ba2604b755f65d3ebf0af99f865a68b7..5c4589eddd52ae6ed531a9e37dcb0e9746e6d61b 100644 (file)
@@ -184,11 +184,8 @@ cf_find_sym(byte *c, unsigned int h0)
     sym_hash = cfg_allocz(SYM_HASH_SIZE * sizeof(struct keyword *));
   else
     for(s = sym_hash[h]; s; s=s->next)
-      {
        if (!strcmp(s->name, c))
          return s;
-       s = s->next;
-      }
   l = strlen(c);
   if (l > SYM_MAX_LEN)
     cf_error("Symbol too long");