Skip to content

Commit acd0f9b

Browse files
markuspgnxpfrankli
authored andcommitted
Avoid returning uninitialized value and reduce scope
Signed-off-by: Markus Prasser <markuspg@users.noreply.github.com>
1 parent 0454df8 commit acd0f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libuuu/cmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ int CmdBase::dump()
253253
int CmdList::run_all(CmdCtx *p, bool dry)
254254
{
255255
CmdList::iterator it;
256-
int ret;
257256

258257
uuu_notify nt;
259258
nt.type = uuu_notify::NOTIFY_CMD_TOTAL;
@@ -262,6 +261,7 @@ int CmdList::run_all(CmdCtx *p, bool dry)
262261

263262
int i = 0;
264263

264+
int ret = -1;
265265
for (it = begin(); it != end(); it++, i++)
266266
{
267267
uuu_notify nt;

0 commit comments

Comments
 (0)