[svn] Another small issue.
authorGeorg Brandl <georg@python.org>
Sat, 21 Apr 2007 18:49:13 +0000 (20:49 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 21 Apr 2007 18:49:13 +0000 (20:49 +0200)
--HG--
branch : trunk

jinja/_speedups.c

index 7718344230658e08a163328f13d8991cd6e14c50..72ebd096cbc565d3e71edf94af8e73ccf22150d8 100644 (file)
@@ -412,7 +412,7 @@ BaseContext_contains(BaseContext *self, PyObject *item)
                return 0;
 
        name = PyString_AS_STRING(item);
-       if (strlen(name) >= 2 && name[0] == ':' && name[1] == ':')
+       if (name[0] && name[0] == ':' && name[1] == ':')
                return 0;
 
        while (current) {