diff options
author | David Zeuthen <davidz@redhat.com> | 2006-10-09 20:32:58 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2006-10-09 20:32:58 -0400 |
commit | 5daaab35fb0917cdfc6f8a480e214ab76f564b56 (patch) | |
tree | e56898fefd57e366bc41bb94836058a278b066a4 /hald/device.c | |
parent | 5742b5dbee411fb2df32053791dfc6ec0383bc94 (diff) |
switch device_info.c to use strlist iterator
Diffstat (limited to 'hald/device.c')
-rw-r--r-- | hald/device.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hald/device.c b/hald/device.c index 97005e10..2c77cefe 100644 --- a/hald/device.c +++ b/hald/device.c @@ -349,8 +349,11 @@ gboolean hal_device_property_strlist_iter_is_valid (HalDeviceStrListIter *iter) { g_return_val_if_fail (iter != NULL, FALSE); - g_return_val_if_fail (iter->i != NULL, FALSE); - return TRUE; + if (iter->i == NULL) { + return FALSE; + } else { + return TRUE; + } } char ** |