Mehul Jain <mehul.jain2...@gmail.com> writes: > On Fri, Mar 11, 2016 at 10:21 AM, Paul Tan <pyoka...@gmail.com> wrote: >>> static int config_autostash = -1; >> >> Hmm, why can't config_autostash just default to 0? > > Previously Junio recommended not to explicitly initialize a > static to 0 (or NULL). > http://thread.gmane.org/gmane.comp.version-control.git/287709/focus=287726
What Junio says is that you don't need to write static int config_autostash = 0; since it is equivalent to static int config_autostash; But there's nothing wrong with having a static variable defaulting to 0. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html