mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-15 02:00:50 +00:00
don't compare a non-existing function with NULL
Obviously someone forgot something here or didn't use -ansi. Either way, index is nowhere declared so I assume the current behaviour is to check against the index() function coming from somewhere in the POSIX headers. The comparison doesn't make sense then. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
This commit is contained in:
committed by
Kay Sievers
parent
a90221b616
commit
8eefdffb6b
@@ -158,7 +158,7 @@ static struct queue_devpaths *build_index(struct udev_queue_export *udev_queue_e
|
||||
return NULL;
|
||||
}
|
||||
devpaths = calloc(1, sizeof(struct queue_devpaths) + (range + 1) * sizeof(long));
|
||||
if (index == NULL)
|
||||
if (devpaths == NULL)
|
||||
return NULL;
|
||||
devpaths->devpaths_size = range + 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user