From: Georg Brandl Date: Sat, 21 Apr 2007 18:49:13 +0000 (+0200) Subject: [svn] Another small issue. X-Git-Tag: 2.0rc1~341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b79e32b9a44fb9c0cb8f79a967a30b9ebdc56b1b;p=jinja2.git [svn] Another small issue. --HG-- branch : trunk --- diff --git a/jinja/_speedups.c b/jinja/_speedups.c index 7718344..72ebd09 100644 --- a/jinja/_speedups.c +++ b/jinja/_speedups.c @@ -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) {