浏览代码

Merge pull request #8 from drewish/fix-osx-warning

Fix null conversion warning
garyscavone 11 年之前
父节点
当前提交
72207f6fe0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      RtMidi.cpp

+ 1 - 1
RtMidi.cpp

@@ -653,7 +653,7 @@ CFStringRef EndpointName( MIDIEndpointRef endpoint, bool isExternal )
     CFRelease( str );
   }
 
-  MIDIEntityRef entity = NULL;
+  MIDIEntityRef entity = 0;
   MIDIEndpointGetEntity( endpoint, &entity );
   if ( entity == 0 )
     // probably virtual