aboutsummaryrefslogtreecommitdiff
path: root/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'content.go')
-rw-r--r--content.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/content.go b/content.go
index c16c925..50791ca 100644
--- a/content.go
+++ b/content.go
@@ -453,9 +453,10 @@ func muxContent(userName string) (itemDefs []mt.ItemDef, aliases []struct{ Alias
}
func (sc *serverConn) globalParam0(p0 *mt.Content) {
- if sc.client() != nil && sc.client().p0Map != nil {
- if sc.client().p0Map[sc.name] != nil {
- *p0 = sc.client().p0Map[sc.name][*p0]
+ clt := sc.client()
+ if clt != nil && clt.p0Map != nil {
+ if clt.p0Map[sc.name] != nil {
+ *p0 = clt.p0Map[sc.name][*p0]
}
}
}