out_stackdriver: initialize entry size at the beginning of the loop
@@ -1138,8 +1138,9 @@ static int stackdriver_format(struct flb_config *config,
* "timestamp": "..."
* }
*/
-
+ entry_size = 3;
/* Extract severity */
+ severity_extracted = FLB_FALSE;
if (ctx->severity_key
&& get_severity_level(&severity, obj, ctx->severity_key) == 0) {
severity_extracted = FLB_TRUE;
