Re: [PATCH] builtin/clean.c: Fix some sparse warnings

2012-12-21 Thread Zoltan Klinger
Thanks, Ramsay. I am rewriting the whole patch to do things a better way (as kindly suggested by Junio). So the print_filtered() function is going to disappear, but thanks for pointing out the problems with the existing code. Cheers, Zoltan On 21 December 2012 05:33, Ramsay Jones wrote: > > Spars

[PATCH] builtin/clean.c: Fix some sparse warnings

2012-12-20 Thread Ramsay Jones
Sparse issues two "Using plain integer as NULL pointer" warnings (lines 41 and 47). The first warning relates to the initializer expression in the declaration for the 'char *dir' variable. In order to suppress the warning, we simply replace the zero initializer with NULL. The second warning rela