HALF ECHO LEARN / REFERENCE COLLECTION
v262.2coccinelle/empty-or-root.cocci
Git blob: d36f0c8b1bf6352a3cf897da141e3cffa06eeb2b
Lines 1–12 of 12
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression s;
@@
- (isempty(s) || path_equal(s, "/"))
+ empty_or_root(s)
@@
expression s;
@@
- (!isempty(s) && !path_equal(s, "/"))
+ !empty_or_root(s)