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 coccinelle: additional errno.cocci hunk 2015-11-09 20:01:06 +01:00
exit-0.cocci
free_and_replace.cocci
hashmap_free.cocci
htonl.cocci
in_set.cocci
isempty.cocci
malloc_multiply.cocci
memzero.cocci
mfree.cocci
mfree_return.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