]> git.eshelyaron.com Git - emacs.git/commitdiff
(erlang_attribute): Account for error returned by erlang_atom.
authorFrancesco Potortì <pot@gnu.org>
Fri, 28 Mar 2003 13:09:10 +0000 (13:09 +0000)
committerFrancesco Potortì <pot@gnu.org>
Fri, 28 Mar 2003 13:09:10 +0000 (13:09 +0000)
lib-src/etags.c

index 2b044dffed25dde7c7517a59af786d4d67c4e0ed..faf5f7f06f2a8fd7a01b835fb62cf7c97bb03bbe 100644 (file)
@@ -4969,7 +4969,7 @@ erlang_attribute (s)
        {
          pos = skip_spaces (s + pos) - s;
          len = erlang_atom (s, pos);
-         if (len != 0)
+         if (len > 0)
            pfnote (savenstr (& s[pos], len), TRUE,
                    s, pos + len, lineno, linecharno);
        }