chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't compare a non-existing function with NULL
[elogind.git]
/
libudev
/
libudev-queue-private.c
diff --git
a/libudev/libudev-queue-private.c
b/libudev/libudev-queue-private.c
index 0427b65a015a06b499541c43424974abf12d0b7d..4dea4ad0e7f4ae8f43e4c0afa3b96dfb06c95ba6 100644
(file)
--- a/
libudev/libudev-queue-private.c
+++ b/
libudev/libudev-queue-private.c
@@
-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;