if (val && !strcmp (val, "blank"))
return NULL; /* ignore empty drives and virgin recordable discs */
- const char *scheme = "invalid";
+ const char *scheme = NULL;
val = udev_device_get_property_value (dev,
"ID_CDROM_MEDIA_TRACK_COUNT_AUDIO");
if (val && atoi (val))
/* We didn't get any property that could tell we have optical disc
that we can play */
- if( !strcmp( scheme, "invalid" ) )
+ if (scheme == NULL)
return NULL;
val = udev_device_get_devnode (dev);