Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | licensing: add spdx to our .cocci files | Zbigniew Jędrzejewski-Szmek | 2021-10-01 | 1 | -0/+1 |
| | | | | | Since those are chunks of code based on our codebase, it's easiest to use the same license. | ||||
* | tree-wide: formatting tweaks reported by Coccinelle | Frantisek Sumsal | 2020-04-21 | 1 | -2/+14 |
| | |||||
* | coccinelle: ignore function transformations causing recursion | Frantisek Sumsal | 2019-04-29 | 1 | -18/+30 |
| | | | | | | | | | | | | | | | | | | | | | | For example, following transformation: - isempty(s) ? NULL : s + empty_to_null(s) would get applied to the empty_to_null function itself as well, causing an infinite recursion, like: --- src/basic/string-util.h +++ /tmp/cocci-output-307-9f76e6-string-util.h @@ -50,11 +50,11 @@ static inline bool isempty(const char *p } static inline const char *empty_to_null(const char *p) { - return isempty(p) ? NULL : p; + return empty_to_null(p); } Let's avoid that by checking the current match position | ||||
* | cocci: use strempty() at more places | Lennart Poettering | 2018-01-10 | 1 | -0/+38 |
| | | | | This shortens the code by a few lines. | ||||
* | Add Coccinelle patch for strempty() usage | Daniel Mack | 2015-09-30 | 1 | -0/+10 |