]> git.puffer.fish Git - matthieu/frr.git/commit
tools: Catch double pointer of struct thread towards thread_add_*
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 7 Oct 2021 13:20:35 +0000 (16:20 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 7 Oct 2021 13:25:03 +0000 (16:25 +0300)
commitc08050d6d10a5acab3d044858b5480bb01351cff
tree87fa79fe2bee4d7795443ab435ac3e87aa9b0665
parentb7a88ee2910a1c76ccbae38a9e7226d6c93fff37
tools: Catch double pointer of struct thread towards thread_add_*

```
% spatch --sp-file tools/coccinelle/struct_thread_double_pointer.cocci --macro-file tools/cocci.h ./ 2>/dev/null
./lib/northbound_confd.c:429:65-66: Passed double 'struct thread' pointer
./lib/northbound_confd.c:1174:61-62: Passed double 'struct thread' pointer
./lib/northbound_sysrepo.c:543:69-70: Passed double 'struct thread' pointer
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
tools/coccinelle/struct_thread_double_pointer.cocci [new file with mode: 0644]