Change-Id: Ic1bb36091be44483c746ace7cdfe045ca2af1a23
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
LOGE("Cannot get system info\n");
//do not send sys_info because
//it is corrupted
- continue;
+ goto flush_buf;
}
msg = pack_system_info(&sys_info);
if (!msg) {
LOGE("Cannot pack system info\n");
- reset_system_info(&sys_info);
- continue;
+ goto reset_system_info;
}
if (write_to_buf(msg) != 0)
#endif
free_msg_data(msg);
+reset_system_info:
reset_system_info(&sys_info);
+flush_buf:
flush_buf();
}
else if(signo == SIGUSR1)