From 509d469d4edec85584b70e7ba54c0a88bc96ddea Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 22 Feb 2012 19:23:38 +0000 Subject: use NULL rather than 0 for header pointers --- URPM.xs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/URPM.xs b/URPM.xs index d6453d0..1e0559e 100644 --- a/URPM.xs +++ b/URPM.xs @@ -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; } -- cgit v1.2.1