]> git.sesse.net Git - vlc/commitdiff
drms: Fix a pointer to int comparison.
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 00:00:53 +0000 (02:00 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 00:00:53 +0000 (02:00 +0200)
modules/demux/mp4/drms.c

index ca4d9c63982b4456f09903aaf171d09924a94e0e..7f09662628a5dfb08eabec8c0a47503b51344338 100644 (file)
@@ -2004,7 +2004,7 @@ static int GetiPodID( int64_t *p_ipod_id )
             if( IOServiceGetMatchingServices( port, match_dic,
                                               &iterator ) == KERN_SUCCESS )
             {
-                while( ( device = IOIteratorNext( iterator ) ) != NULL )
+                while( ( device = IOIteratorNext( iterator ) ) != 0 )
                 {
                     value = IORegistryEntryCreateCFProperty( device,
                         CFSTR("GUID"), kCFAllocatorDefault, kNilOptions );