Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] fast-import: initialize variable require_explicit_termination

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:51:55

Junio C Hamano [off-list ref] writes:
Matthieu Moy [off-list ref] writes:
quoted
The uninitialized variable seems harmless in practice, but let's still be clean.
It is not "in practice", but by definition, file scope "static int"
variables are initialized to 0 by the C language
OK, I didn't know this was specified in C, but you're right.
Please do not write unnecessary " = 0" there.
I prefer being explicit, but that's a matter of taste, and I don't
really care, so let's drop this patch.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help