Skip to content

Commit

Permalink
Guard on grandparent assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Apr 17, 2016
1 parent c7f117d commit 9028c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/man.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function text(node) {
}

var p = node.parent
, grandparent = p.parent
, grandparent = p ? p.parent : null
, dest = '';

// NOTE: this captures link parents when the hierarchy is:
Expand Down

0 comments on commit 9028c75

Please sign in to comment.