Skip to content

Commit da040f4

Browse files
committed
prevent nil pointer refs
1 parent 2ab5f7d commit da040f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlas/commands/string.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (c *CommandString) ReplaceCommand(original, new string) Command {
227227
}
228228

229229
// EmptyCommandString is an empty CommandString
230-
var EmptyCommandString *CommandString = &CommandString{}
230+
var EmptyCommandString *CommandString = CommandFromString("")
231231

232232
// NormalizedLen returns the number of parts in the normalized command.
233233
func (c *CommandString) NormalizedLen() int {

0 commit comments

Comments
 (0)