[master] bb2765d Don't NUL terminate the enum spec in the enum spec writing function, the function-emitting function will do that.
Poul-Henning Kamp
phk at varnish-cache.org
Thu Feb 17 21:14:22 CET 2011
commit bb2765dcfe1127eda090154157a0e147754338a8
Author: Charlie <root at .(none)>
Date: Thu Feb 17 19:13:21 2011 +0000
Don't NUL terminate the enum spec in the enum spec writing function,
the function-emitting function will do that.
Spotted by: Nils Goroll
diff --git a/lib/libvmod_std/vmod.py b/lib/libvmod_std/vmod.py
index 7d751cb..a799dd8 100755
--- a/lib/libvmod_std/vmod.py
+++ b/lib/libvmod_std/vmod.py
@@ -141,7 +141,6 @@ def parse_enum(tq):
raise Exception("Duplicate Enum value '%s'" % i)
b[i] = True
s = s + i.strip() + '\\0'
- s = s + '\\0'
return s
#######################################################################
More information about the varnish-commit
mailing list