• Dridi Boukelmoune's avatar
    Use the TAKE_OBJ_NOTNULL macro where relevant · e6755a5d
    Dridi Boukelmoune authored
    This patch was created using Coccinelle and the following steps:
    
       $ cat >take.cocci <<EOF
       @@
       expression t, f;
       constant m;
       @@
    
       - AN(f);
       - t = *f;
       - *f = NULL;
       - CHECK_OBJ_NOTNULL(t, m);
       + TAKE_OBJ_NOTNULL(t, f, m);
       EOF
       $ spatch --sp-file take.cocci --dir . --in-place
    e6755a5d
Name
Last commit
Last update
..
Makefile.am Loading commit data...
Makefile.phk Loading commit data...
fall_back.c Loading commit data...
hash.c Loading commit data...
random.c Loading commit data...
round_robin.c Loading commit data...
vdir.c Loading commit data...
vdir.h Loading commit data...
vmod.vcc Loading commit data...