[4.0] 9f5a153 Get the name token out of the way prior to looking for a ', ' or ')'.

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 15 16:35:41 CET 2015


commit 9f5a153feb3bc6a90a77d8148ea35682d0aa8fa5
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Tue Sep 23 11:21:42 2014 +0200

    Get the name token out of the way prior to looking for a ',' or ')'.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index d2d9dc2..bf386f3 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -645,8 +645,8 @@ def parse_func(tl, rt_type=None, pobj=None):
 		t = tl.get_token()
 		if is_c_name(t.str):
 			al[-1].nam = t.str
-			t = None
-		elif t.str == ",":
+			t = tl.get_token()
+		if t.str == ",":
 			t = None
 		elif t.str == ")":
 			break



More information about the varnish-commit mailing list