Add the needed assert changes to make the code clean
for the new check-pointer-deref script.
coccinelle_exclude = [
'src/basic/',
'src/core/',
- 'src/import/',
'src/journal/',
'src/libsystemd/',
'src/network/',
const char *p;
char *s;
+ assert(value);
+
p = memory_startswith_no_case(contents, sz, field);
if (!p)
return 0;
size_t l;
void *p;
+ assert(buffer);
+ assert(buffer_size);
+ assert(buffer_allocated);
+
if (*buffer_allocated > *buffer_size)
return 0;
int r;
assert(j);
+ assert(ret);
/* Generic implementation of a PullJobNotFound handler, that restarts the job requesting SHA256SUMS */
bool *compressed,
uint64_t *compressed_size) {
+ assert(ret);
+ POINTER_MAY_BE_NULL(compressed);
+ POINTER_MAY_BE_NULL(compressed_size);
+
uint64_t q;
q = be64toh(p);