You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
348 B

  1. --- a/src/libudev.c
  2. +++ b/src/libudev.c
  3. @@ -175,7 +175,7 @@ populate_properties_list(struct udev_dev
  4. struct udev_list_entry **list_end = &udev_device->properties_list;
  5. - for (unsigned i = 0; i < nitems(ids); ++i) {
  6. + for (unsigned i = 0; i < (sizeof(ids) / sizeof(ids[0])); ++i) {
  7. char const *id = ids[i];
  8. struct udev_list_entry *le;