Closed GoogleCodeExporter closed 9 years ago
STARTUPINFOA si = { sizeof(si) };
This relies on field order, which is probably fine in this case.
PROCESS_INFORMATION pi = {};
That's not valid ISO C, you can't pass an empy initializer list afaik.
Original comment by valenok
on 4 Mar 2012 at 5:13
Of course it is, if field order were to change, other code would stop
working also
Of course it is valid, why don't you try? I use this construct many times.
All in all, you did not specify why you won't fix.
Original comment by janez...@gmail.com
on 4 Mar 2012 at 5:25
GCC gives me a warning about missing initializers.
However, I've poked around a bit, and apparently you're right,
this is a valid C99 construct. And it looks like it is a useful idiom.
Thank you, I'll start to use it from now on.
Submitted
http://code.google.com/p/mongoose/source/detail?r=0d6e197ba81444fc39d3a7054be455
b49838fd1e
Original comment by valenok
on 4 Mar 2012 at 7:41
Original issue reported on code.google.com by
janez...@gmail.com
on 16 Feb 2012 at 7:29