hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 8fe48a657642c4fc9855a62e9517509b10b0cbbd
parent 39c74b70dc9b9def0577a080760d41433731fe8c
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat,  9 Apr 2016 14:25:33 +0200

Fix potential data race in test

Diffstat:
Mhugolib/shortcode.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
@@ -558,7 +558,9 @@ func renderShortcodeWithPage(tmpl *template.Template, data *ShortcodeWithPage) s
 	buffer := bp.GetBuffer()
 	defer bp.PutBuffer(buffer)
 
+	isInnerShortcodeCache.RLock()
 	err := tmpl.Execute(buffer, data)
+	isInnerShortcodeCache.RUnlock()
 	if err != nil {
 		jww.ERROR.Println("error processing shortcode", tmpl.Name(), "\n ERR:", err)
 		jww.WARN.Println(data)