mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
repair return value incorrect
Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
parent
fd6f876f7d
commit
2ea968ce5f
@ -243,7 +243,7 @@ static int BatchSavePersistParam(PERSIST_SAVE_HANDLE handle[], const char *name,
|
||||
PARAM_CHECK(ret > 0, return -1, "Batchsavepersistparam fail, error %d", errno);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
return (ret > 0) ? 0 : -1;
|
||||
}
|
||||
|
||||
static void BatchSavePersistParamEnd(PERSIST_SAVE_HANDLE handle[])
|
||||
|
Loading…
Reference in New Issue
Block a user