diff options
Diffstat (limited to 'dpkg-split')
-rw-r--r-- | dpkg-split/join.c | 3 | ||||
-rw-r--r-- | dpkg-split/queue.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/dpkg-split/join.c b/dpkg-split/join.c index 4add3904a..7fd789fc6 100644 --- a/dpkg-split/join.c +++ b/dpkg-split/join.c @@ -114,7 +114,8 @@ void do_join(const char *const *argv) { if (!refi || pq->info.thispartn < refi->thispartn) refi= &pq->info; assert(refi); partlist= nfmalloc(sizeof(struct partinfo*)*refi->maxpartn); - for (i=0; i<refi->maxpartn; i++) partlist[i]= 0; + for (i = 0; i < refi->maxpartn; i++) + partlist[i] = NULL; for (pq= queue; pq; pq= pq->nextinqueue) { pi= &pq->info; addtopartlist(partlist,pi,refi); diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c index 342d19fdd..bcf7ffe09 100644 --- a/dpkg-split/queue.c +++ b/dpkg-split/queue.c @@ -120,7 +120,8 @@ void do_auto(const char *const *argv) { fclose(part); scandepot(); partlist= nfmalloc(sizeof(struct partinfo*)*refi->maxpartn); - for (i=0; i<refi->maxpartn; i++) partlist[i]= 0; + for (i = 0; i < refi->maxpartn; i++) + partlist[i] = NULL; for (pq= queue; pq; pq= pq->nextinqueue) { pi= &pq->info; if (!partmatches(pi,refi)) continue; |