device: use NULL instead of 0 in g_return_val_if_fail() for pointer

This commit is contained in:
Jiří Klimeš 2015-07-08 16:49:19 +02:00
parent dce050a45d
commit 46f29a4abc

View file

@ -546,7 +546,7 @@ nm_device_get_udi (NMDevice *self)
const char *
nm_device_get_iface (NMDevice *self)
{
g_return_val_if_fail (NM_IS_DEVICE (self), 0);
g_return_val_if_fail (NM_IS_DEVICE (self), NULL);
return NM_DEVICE_GET_PRIVATE (self)->iface;
}