diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-22 19:23:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-22 19:23:38 +0000 |
commit | 509d469d4edec85584b70e7ba54c0a88bc96ddea (patch) | |
tree | 607106f78bab423ae7947d5b9a66a5d4707809ab /URPM.xs | |
parent | d0a361d3f7674910ac74be4454333696239457b3 (diff) | |
download | perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.gz perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.bz2 perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.tar.xz perl-URPM-509d469d4edec85584b70e7ba54c0a88bc96ddea.zip |
use NULL rather than 0 for header pointers
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -823,7 +823,7 @@ pack_header(URPM__Package pkg) { } if (!(pkg->flag & FLAG_NO_HEADER_FREE)) pkg->h =headerFree(pkg->h); - pkg->h = 0; + pkg->h = NULL; } } @@ -2782,7 +2782,7 @@ Db_traverse(db,callback) call_sv(callback, G_DISCARD | G_SCALAR); SPAGAIN; - pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */ + pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */ } ++count; } @@ -2836,7 +2836,7 @@ Db_traverse_tag(db,tag,names,callback) call_sv(callback, G_DISCARD | G_SCALAR); SPAGAIN; - pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */ + pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */ } ++count; } @@ -2881,7 +2881,7 @@ Db_traverse_tag_find(db,tag,name,callback) int count = call_sv(callback, G_SCALAR); SPAGAIN; - pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */ + pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */ if (count == 1 && POPi) { found = 1; @@ -3027,7 +3027,7 @@ Trans_traverse(trans, callback) PUTBACK; call_sv(callback, G_DISCARD | G_SCALAR); SPAGAIN; - pkg->h = 0; /* avoid using it anymore, in case it has been copied inside callback */ + pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */ } ++c; } |