Skip to content

Commit

Permalink
Merge pull request #4 from choongyong/fix-segfault
Browse files Browse the repository at this point in the history
fix: return @@context even when the unless block is not executed.
  • Loading branch information
hexdigest committed Jun 30, 2017
2 parents 8446b32 + 6fc72f5 commit 4049757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby-nfc/nfc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def self.context
LibNFC.nfc_init(ptr)
@@context = ptr.read_pointer
end
@@context
end

def self.logger
Expand Down

0 comments on commit 4049757

Please sign in to comment.