Skip to content

Commit

Permalink
Fix keyboard selection on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
thoelze1 committed Aug 5, 2020
1 parent 5e495d6 commit 290f743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/mac/keyio_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void open_matching_devices(char *product, io_iterator_t iter) {
kern_return_t kr;
CFStringRef cfproduct = NULL;
if(product) {
CFStringRef cfproduct = CFStringCreateWithCString(kCFAllocatorDefault, product, CFStringGetSystemEncoding());
cfproduct = CFStringCreateWithCString(kCFAllocatorDefault, product, CFStringGetSystemEncoding());
if(cfproduct == NULL) {
std::cerr << "CFStringCreateWithCString error" << std::endl;
return;
Expand Down

0 comments on commit 290f743

Please sign in to comment.