diff options
| author | Michael Biebl <biebl@debian.org> | 2015-07-14 19:38:58 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2015-07-14 19:38:58 +0200 |
| commit | 50a58f0fabd8a34c1b6108a107e08abe3c1ccd24 (patch) | |
| tree | 6790165f39daee79e2b6c6617483320613493367 /libnm/nm-device.c | |
| parent | f408e27bccfacf347605a8d98649975a68f38a17 (diff) | |
Imported Upstream version 1.0.4 upstream/1.0.4
Diffstat (limited to 'libnm/nm-device.c')
| -rw-r--r-- | libnm/nm-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c index e80ac707..cd14c0e9 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -979,6 +979,9 @@ nm_device_get_type_description (NMDevice *device) NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (device); const char *desc, *typename; + /* BEWARE: this function should return the same value + * as nm_device_get_type_description() in nm-core. */ + g_return_val_if_fail (NM_IS_DEVICE (device), NULL); if (priv->type_description) |