Fix various issues reported by Coverity
This commit is contained in:
@@ -673,13 +673,12 @@ prepare_recovery_environment (void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (iter)
|
||||
if (*iter)
|
||||
g_startup_reason_location = iter;
|
||||
else
|
||||
{
|
||||
g_startup_reason_location = g_recovery_env.vector + g_recovery_env.len;
|
||||
str_vector_add (&g_recovery_env, "");
|
||||
g_startup_reason_location =
|
||||
g_recovery_env.vector + g_recovery_env.len - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user