From b79e32b9a44fb9c0cb8f79a967a30b9ebdc56b1b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 21 Apr 2007 20:49:13 +0200 Subject: [PATCH] [svn] Another small issue. --HG-- branch : trunk --- jinja/_speedups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.26.2