mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 16:21:11 +03:00
libudev: device - 128 -> ENVP_SIZE
This commit is contained in:
parent
be18918f65
commit
9a23e9e775
@ -1019,7 +1019,7 @@ char **udev_device_get_properties_envp(struct udev_device *udev_device)
|
|||||||
struct udev_list_entry *list_entry;
|
struct udev_list_entry *list_entry;
|
||||||
|
|
||||||
if (udev_device->envp) {
|
if (udev_device->envp) {
|
||||||
for (i = 0; i < 128 && udev_device->envp[i] != NULL; i++)
|
for (i = 0; i < ENVP_SIZE && udev_device->envp[i] != NULL; i++)
|
||||||
free(udev_device->envp[i]);
|
free(udev_device->envp[i]);
|
||||||
} else
|
} else
|
||||||
udev_device->envp = malloc(sizeof(char *) * ENVP_SIZE);
|
udev_device->envp = malloc(sizeof(char *) * ENVP_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user