3 ms·
I don't think that's protobuf's fault, it's simply a side effect of the common pattern in C of using memset when you initialise structs. I don't think there's a
by onei 6y ago
I don't think that's protobuf's fault, it's simply a side effect of the common pattern in C of using memset when you initialise structs. I don't think there's a really good way around it other than remembering to think like a C programmer every now and then.
I guess one option is to replace the endpoints that use the enum, but that seems heavy handed if it's wide spread.