1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00
systemd/coccinelle
Lennart Poettering 57ea45e11a util-lib: introduce new empty_or_root() helper (#8746)
We check the same condition at various places. Let's add a trivial,
common helper for this, and use it everywhere.

It's not going to make things much faster or much shorter, but I think a
lot more readable
2018-04-18 14:20:49 +02:00
..
close-above-stdio.cocci
const-strlen.cocci
debug-logging.cocci
div-round-up.cocci
dup-fcntl.cocci
empty-or-root.cocci
empty-to-null.cocci
enotsup.cocci
equals-null.cocci
errno.cocci
exit-0.cocci
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
in_set.cocci
isempty.cocci
malloc_multiply.cocci
memzero.cocci
mfree_return.cocci
mfree.cocci
no-if-assignments.cocci
not_in_set.cocci
o-ndelay.cocci
reallocarray.cocci
run-coccinelle.sh
safe_close-no-if.cocci
safe_close.cocci
safe_closedir.cocci
safe_fclose.cocci
strempty.cocci
strjoin.cocci
strjoina.cocci
strv_free.cocci
take-fd.cocci
take-ptr.cocci
while-true.cocci
xsprintf.cocci