static
void __mm_streamrecorder_ini_check_status(void)
{
- struct stat ini_buff;
+ GStatBuf ini_buff;
+ char buf[255] = {0, };
_mmstreamrec_dbg_warn("enter");
} else {
if (ini_buff.st_size < 5) {
_mmstreamrec_dbg_err("mmfw_streamrecorder.ini file size=%d, Corrupted! So, Removed\n", (int)ini_buff.st_size);
- g_remove(MM_STREAMRECORDER_INI_DEFAULT_PATH);
+ if (g_remove(MM_STREAMRECORDER_INI_DEFAULT_PATH) == -1) {
+ strerror_r(errno, buf, sizeof(buf));
+ _mmstreamrec_dbg_err("failed to delete corrupted ini [%s]", buf);
+ }
}
}