chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
logind: apply selinux label to XDG_RUNTIME_DIR
[elogind.git]
/
src
/
shared
/
prioq.c
diff --git
a/src/shared/prioq.c
b/src/shared/prioq.c
index 8af4c51c2f751336e2822a44a1c12e2257960761..b89888be0e8d5460313ffc3e9712856f214ce5d2 100644
(file)
--- a/
src/shared/prioq.c
+++ b/
src/shared/prioq.c
@@
-45,12
+45,14
@@
Prioq *prioq_new(compare_func_t compare_func) {
return q;
}
-
void
prioq_free(Prioq *q) {
+
Prioq*
prioq_free(Prioq *q) {
if (!q)
- return;
+ return
NULL
;
free(q->items);
free(q);
+
+ return NULL;
}
int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func) {