Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
3a969bc0
Commit
3a969bc0
authored
Oct 13, 2017
by
Craig Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nil check
parent
425f6114
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
caddyfile/parse.go
caddyfile/parse.go
+1
-1
No files found.
caddyfile/parse.go
View file @
3a969bc0
...
@@ -247,7 +247,7 @@ func (p *parser) doImport() error {
...
@@ -247,7 +247,7 @@ func (p *parser) doImport() error {
var
importedTokens
[]
Token
var
importedTokens
[]
Token
// first check macros. That is a simple, non-recursive replacement
// first check macros. That is a simple, non-recursive replacement
if
p
.
definedMacros
[
importPattern
]
!=
nil
{
if
p
.
definedMacros
!=
nil
&&
p
.
definedMacros
[
importPattern
]
!=
nil
{
importedTokens
=
p
.
definedMacros
[
importPattern
]
importedTokens
=
p
.
definedMacros
[
importPattern
]
}
else
{
}
else
{
// make path relative to Caddyfile rather than current working directory (issue #867)
// make path relative to Caddyfile rather than current working directory (issue #867)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment